Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1638 Discussions

Cannot SSH using Linux. Error Message is "Ncat: Connection timed out."

Cinly_O_Intel
Employee
3,007 Views

Hi,

I can get into Jupyter no problem, but not SSH from Fedora29. I am in Intel Malaysia and I need  proxy to access non-intel site from the F29 machine.

Here is what I get

<code>

$ cat ~/.ssh/config 

## Note, I masked off User  and Port information with XXXXX and 9999

Host devcloud
        User uXXXXX
        Port 9999
        IdentityFile /home/cinlyooi/.ssh/devcloud-access-key-XXXXX.txt
        ProxyCommand ssh -T devcloud-via-proxy

Host devcloud-via-proxy
        User guest
        Hostname devcloud.intel.com
        IdentityFile ~/.ssh/devcloud-access-key-XXXXX.txt
        LocalForward 9999 c009:22
        ProxyCommand nc -x proxy-chain.intel.com:1080 %h %p

$ ssh devcloud
Ncat: Connection timed out.
ssh_exchange_identification: Connection closed by remote host
ssh_exchange_identification: Connection closed by remote host

</code>

For 'nc -x' options,

For devcloud-via-proxy,

  • I tried "Hostname cluster.colfaxresearch.com" from the same forum thread, and 
  • I tried "LocalForward 9999 colfaxserver:22" from https://software.intel.com/en-us/forums/intel-devcloud/topic/831593

but have no luck.

Appreciate any help I can get.

Many thanks and happy new year

Cinly

 

 

 

0 Kudos
1 Solution
ChithraJ_Intel
Moderator
3,009 Views

Hi,

Could you please try with the following config file.

Host colfax_proxy
User uXXXXX
HostName c009
Port 4036
IdentityFile /home/mobaxterm/key/colfax-access-key-XXXXX
ProxyCommand ssh -T devcloud-socks-proxy

Host devcloud-socks-proxy
User guest
Hostname cluster.colfaxresearch.com
IdentityFile /home/mobaxterm/key/colfax-access-key-XXXXX
LocalForward 4036 colfaxserver:22
#ProxyCommand nc -x  proxy-us.intel.com %h %p
ProxyCommand nc -x proxy.jf.intel.com %h %p 

Hope it helps. Please feel free to reach out to us for further issues.

View solution in original post

0 Kudos
5 Replies
Srilekha_P_Intel
Employee
3,009 Views
Hi, Thank you for reaching us. Could you please confirm us whether you are able to connect from external network or not?
0 Kudos
Cinly_O_Intel
Employee
3,009 Views

Hi Srilekha

Thank you for your reply. Sorry for the late reply. This is because timezone issue (GMT+8 here) means anything you ask me to do outside Intel will mean at least a 24 hour delay because I have to leave work for home first and this time extra delay was caused by the weekend.

I can confirm I can connect from external network using the non-proxy-based approach.

Any idea on what can I try to resolve the issue?

Many thanks

cinly

0 Kudos
ChithraJ_Intel
Moderator
3,010 Views

Hi,

Could you please try with the following config file.

Host colfax_proxy
User uXXXXX
HostName c009
Port 4036
IdentityFile /home/mobaxterm/key/colfax-access-key-XXXXX
ProxyCommand ssh -T devcloud-socks-proxy

Host devcloud-socks-proxy
User guest
Hostname cluster.colfaxresearch.com
IdentityFile /home/mobaxterm/key/colfax-access-key-XXXXX
LocalForward 4036 colfaxserver:22
#ProxyCommand nc -x  proxy-us.intel.com %h %p
ProxyCommand nc -x proxy.jf.intel.com %h %p 

Hope it helps. Please feel free to reach out to us for further issues.

0 Kudos
Cinly_O_Intel
Employee
3,009 Views

Thank you Chithra, after switching the IdentifyFile to devcloud's, and changing the proxy to the socks proxy and port, I managed to login.

Thank you.

Cinly

0 Kudos
ChithraJ_Intel
Moderator
3,009 Views

Hi,

Glad to hear that it is worked for you.

We are closing the case. Please feel free to raise a new thread in case you face any further issues.

0 Kudos
Reply