Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Cinly_O_Intel
Employee
774 Views

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

Jump to solution

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

 

 

 

Tags (1)
0 Kudos
1 Solution
ChithraJ_Intel
Moderator
774 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

5 Replies
Srilekha_P_Intel
Employee
774 Views
Hi, Thank you for reaching us. Could you please confirm us whether you are able to connect from external network or not?
Cinly_O_Intel
Employee
774 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

ChithraJ_Intel
Moderator
775 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

Cinly_O_Intel
Employee
774 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

ChithraJ_Intel
Moderator
774 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.

Reply