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

Urgent: Can't connect to the server with ssh

Fernando_Mo
Novice
2,944 Views

Hi,

 

I knew these days the intel devcloud were made a change to the infrastructure, and I followed all the steps the forum posted, it still doesn't work.

 

Firstly, I followed these commands, and then showed the permission denied,

Fernando_Mo_0-1656063232560.png

 

I tried to solve above poblem, then I redownloaded my accessing document and reintalled it in Cygwin, using the command $chmod 600 <devcloud-access...txt, and config> it doesn't work as well. the whole processes were following below,

 

$ rm -r .ssh/

$ bash ~/Downloads/setup-devcloud-access-154409.txt
Creating the /home/Momo/.ssh directory for SSH client configuration...
Appending SSH connection configuration to /home/Momo/.ssh/config
Creating the private SSH key /home/Momo/.ssh/devcloud-access-key-154409.txt
Important: this file is your access key, keep it safe like you would a password.
Done! Now you can access Intel DevCloud by running ssh devcloud or, if you are behind a proxy, ssh devcloud.proxy

$ ssh devcloud
Bad owner or permissions on /home/Momo/.ssh/config

$ chmod 600 ~/.ssh/devcloud-access-key-154409.txt

$ chmod 600 ~/.ssh/config

$ ssh devcloud
The authenticity of host 'ssh.devcloud.intel.com (12.229.61.118)' can't be established.
ED25519 key fingerprint is SHA256:/Dlip01tdMyRmhMDc870Z4Uk7AancwwoTnbb0EZajK0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ssh.devcloud.intel.com' (ED25519) to the list of known hosts.
guest@ssh.devcloud.intel.com: Permission denied (publickey).
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

$ ssh devcloud
guest@ssh.devcloud.intel.com: Permission denied (publickey).
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

$ cp Downloads/setup-devcloud-access-154409.txt ~/.ssh/

 

in direction   ~/.ssh
$ mv setup-devcloud-access-154409.txt devcloud-access-key-154409.txt

$ ssh devcloud
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0775 for '/home/Momo/.ssh/devcloud-access-key-154409.txt' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/Momo/.ssh/devcloud-access-key-154409.txt": bad permissions
guest@ssh.devcloud.intel.com: Permission denied (publickey).
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

$ chmod 600 devcloud-access-key-154409.txt

$ ls -lsa
total 17
0 drwxrwxr-x+ 1 Momo None 0 Jun 24 11:25 .
4 drwxrwxr-x+ 1 Momo None 0 Jun 24 11:18 ..
4 -rw-------+ 1 Momo None 1959 Jun 24 11:18 config
8 -rw-------+ 1 Momo None 5228 Jun 24 11:24 devcloud-access-key-154409.txt
1 -rw-rw-r--+ 1 Momo None 104 Jun 24 11:21 known_hosts

 

$ ssh devcloud
guest@ssh.devcloud.intel.com: Permission denied (publickey).
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

 

so finally it still appears the issue about the permission denied, could you tell me any idea as soon as possible, it's a little urgent for me. thank you very much!!!

 

Best Regard,

GM

 

0 Kudos
10 Replies
AlekhyaV_Intel
Moderator
2,928 Views

Hi,


Thank you for posting in Intel Communities. Sorry for the inconvenience caused. As DevCloud has migrated to new SSH server, some of devcloud users are still facing this issue. We are currently looking into it and will get back to you soon with an update. We will connect with you through private email/message to get your DevCloud user ID.


You can access Jupyter notebook through the below link. Please scroll to the bottom and launch jupyter notebook. https://devcloud.intel.com/oneapi/get_started/


Regards,

Alekhya


0 Kudos
DanDaMan
New Contributor I
2,912 Views

I am seeing the same "guest@ssh.devcloud.intel.com: Permission denied (publickey)" error after regereating config and ensuring I am using the new key. Please message me as well so that I can send you my userid. Thanks.

0 Kudos
Dan_P_Intel
Employee
2,893 Views

@Fernando_Mo @DanDaMan 

I cannot confirm the issues that you're seeing.

I was able to successfully connect to Intel DevCloud using three different methods from my Windows laptop:

  1. Cygwin
  2. Windows OpenSSH
  3. Ubuntu 20.04 in WSL2.

I have successfully removed the old fingerprints for ssh.devcloud.intel.com, and for its corresponding IP 12.229.61.118, and I have successfully added the new fingerprints when prompted to do so.

 

Looking at the screenshot I'm going to guess that the error is somewhere else. Technically our SSH upgrade does not require our users to reinstall Cygwin, nor reconfigure their SSH settings. I would recommend reinstalling Cygwin and reconfiguring SSH from scratch. For this purpose we provide automation scripts at the following links:

 

  1. Install Cygwin
    https://devcloud.intel.com/oneapi/documentation/connect-with-ssh-windows-cygwin/
    https://devcloud.intel.com/oneapi/static/assets/install_cygwin.bat
  2. Configure the SSH connection
    https://devcloud.intel.com/oneapi/documentation/connect-with-ssh-linux-macos/

Please give it a try and let us know how it goes.

Good luck!

0 Kudos
DanM
Beginner
2,887 Views

I can confirm this seems to be working correctly now. I think this must have been a backend fix, as it works now without any changes on my end.

0 Kudos
Fernando_Mo
Novice
2,870 Views

Hi @DanM @AlekhyaV_Intel @DanDaMan @Dan_P_Intel 

 

I can login in with another account of Intel Devcloud, the method is following below,

 

$ bash ~/Downloads/setup-devcloud-access-139xxx.txt
Creating the /home/Momo/.ssh directory for SSH client configuration...
Appending SSH connection configuration to /home/Momo/.ssh/config
Creating the private SSH key /home/Momo/.ssh/devcloud-access-key-139xxx.txt
Important: this file is your access key, keep it safe like you would a password.
Done! Now you can access Intel DevCloud by running ssh devcloud or, if you are behind a proxy, ssh devcloud.proxy

$ ssh devcloud
Bad owner or permissions on /home/Momo/.ssh/config

$ cd .ssh/

$ ls -lsa

total 12
0 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:18 .
4 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:18 ..
4 -rw-rw-r--+ 1 Momo None 1959 Jun 25 09:18 config
4 -rw-------+ 1 Momo None 2455 Jun 25 09:18 devcloud-access-key-139xxx.txt

$ chmod 600 config

$ ls -lsa
total 12
0 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:18 .
4 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:18 ..
4 -rw-------+ 1 Momo None 1959 Jun 25 09:18 config
4 -rw-------+ 1 Momo None 2455 Jun 25 09:18 devcloud-access-key-139xxx.txt

 

$ ssh devcloud
The authenticity of host 'ssh.devcloud.intel.com (12.229.61.118)' can't be established.
ED25519 key fingerprint is SHA256:/Dlip01tdMyRmhMDc870Z4Uk7AancwwoTnbb0EZajK0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ssh.devcloud.intel.com' (ED25519) to the list of known hosts.
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ED25519 key fingerprint is SHA256:lS/2XMIIjUjLdbBOVwX+d0HoUE7o/Vp+YH+vIyxO2XQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.

 

$ ssh devcloud
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ED25519 key fingerprint is SHA256:lS/2XMIIjUjLdbBOVwX+d0HoUE7o/Vp+YH+vIyxO2XQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'devcloud' (ED25519) to the list of known hosts.
###############################################################################
#
# Welcome to the Intel DevCloud for oneAPI Projects!
#
# 1) See https://devcloud.intel.com/oneapi/ for instructions and rules for
# the OneAPI Instance.
#
# 2) See https://github.com/intel/FPGA-Devcloud for instructions and rules for

......

......

 

Finally this account (u139xxx) was login in successfully via this scheme.

 

However, for the problem account (u154xxx), it still didn't work by the same method as above.

 

$ bash ~/Downloads/setup-devcloud-access-154xxx.txt
Creating the /home/Momo/.ssh directory for SSH client configuration...
Appending SSH connection configuration to /home/Momo/.ssh/config
Creating the private SSH key /home/Momo/.ssh/devcloud-access-key-154xxx.txt
Important: this file is your access key, keep it safe like you would a password.
Done! Now you can access Intel DevCloud by running ssh devcloud or, if you are behind a proxy, ssh devcloud.proxy

$ ssh devcloud
Bad owner or permissions on /home/Momo/.ssh/config

$ cd .ssh/

$ ls -lsa
total 12
0 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:11 .
4 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:11 ..
4 -rw-rw-r--+ 1 Momo None 1959 Jun 25 09:11 config
4 -rw-------+ 1 Momo None 2455 Jun 25 09:11 devcloud-access-key-154409.txt


$ chmod 600 config


$ ls -lsa
total 12
0 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:11 .
4 drwxrwxr-x+ 1 Momo None 0 Jun 25 09:11 ..
4 -rw-------+ 1 Momo None 1959 Jun 25 09:11 config
4 -rw-------+ 1 Momo None 2455 Jun 25 09:11 devcloud-access-key-154409.txt


$ ssh devcloud
The authenticity of host 'ssh.devcloud.intel.com (12.229.61.118)' can't be established.
ED25519 key fingerprint is SHA256:/Dlip01tdMyRmhMDc870Z4Uk7AancwwoTnbb0EZajK0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ssh.devcloud.intel.com' (ED25519) to the list of known hosts.
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ED25519 key fingerprint is SHA256:lS/2XMIIjUjLdbBOVwX+d0HoUE7o/Vp+YH+vIyxO2XQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.


$ ssh devcloud
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ED25519 key fingerprint is SHA256:lS/2XMIIjUjLdbBOVwX+d0HoUE7o/Vp+YH+vIyxO2XQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'devcloud' (ED25519) to the list of known hosts.
u154xxx@devcloud: Permission denied (publickey).


$ ssh devcloud
u154xxx@devcloud: Permission denied (publickey).

 

Yes, as the red and bold sentence said, this account is alway denied. I didn't reinstall my cygwin, just reconfigure the account script as showing above.

 

@DanDaMan I hope it can help you a little. 

 

 

Best Regard

GM

 

0 Kudos
Fernando_Mo
Novice
2,861 Views

Hi everyone,

 

Regarding with the user account u154xxx as mentioned before, I tried it in terminal of Ubuntu 16.4 OS, it also shwn me the permission denied,

 

$ bash ~/Downloads/setup-devcloud-access-154xxx.txt
Creating the /home/momo/.ssh directory for SSH client configuration...
Appending SSH connection configuration to /home/momo/.ssh/config
Creating the private SSH key /home/momo/.ssh/devcloud-access-key-154xxx.txt
Important: this file is your access key, keep it safe like you would a password.
Done! Now you can access Intel DevCloud by running ssh devcloud or, if you are behind a proxy, ssh devcloud.proxy


$ ssh devcloud
The authenticity of host 'ssh.devcloud.intel.com (12.229.61.118)' can't be established.
ECDSA key fingerprint is SHA256:fdh1CzIao2MCh6YQ3uP7ZZyZF0XqieU7OY6DjcDctq4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ssh.devcloud.intel.com,12.229.61.118' (ECDSA) to the list of known hosts.
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is SHA256:7R/nUuhf2mWQej8YRr+FNr0T0++Rw71wmvZpsrysbFU.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.


$ ssh devcloud
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is SHA256:7R/nUuhf2mWQej8YRr+FNr0T0++Rw71wmvZpsrysbFU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'devcloud' (ECDSA) to the list of known hosts.
Permission denied (publickey).


$ ssh devcloud
Permission denied (publickey).

 

 

or the other option as showing below I also tried, but it didn't work as well.

 

$ ssh devcloud
The authenticity of host 'ssh.devcloud.intel.com (12.229.61.118)' can't be established.
ECDSA key fingerprint is SHA256:fdh1CzIao2MCh6YQ3uP7ZZyZF0XqieU7OY6DjcDctq4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ssh.devcloud.intel.com,12.229.61.118' (ECDSA) to the list of known hosts.
The authenticity of host 'devcloud (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is SHA256:7R/nUuhf2mWQej8YRr+FNr0T0++Rw71wmvZpsrysbFU.
Are you sure you want to continue connecting (yes/no)? yes
Host key verification failed.

 

I'm not sure if it's random account would be occurred this issue, because the account u139xxx is all ok whatever Ubuntu or Windows Cygwin. It's so confusing for me. anyway, it's also so lucky for me because I can work with one of accounts.

 

Best Regards,

GM

0 Kudos
DanDaMan
New Contributor I
2,845 Views

You are seeing a different error than the "guest@ssh.devcloud.intel.com: Permission denied (publickey).." which is what I was seeing. Also your encryption type seems different (I see ED25519 key fingerprint is SHA256:/Dlip01tdMyRmhMDc870Z4Uk7AancwwoTnbb0EZajK0. )

If it's only happening in Ubuntu 16.04, I suspect your SSH version may be too old and may not support the encryption types that devcloud requires. You might want to try with an up to date version of SSH and a clean ~/.ssh directory in case there was something funky in your configuration.

Good luck!

0 Kudos
Dan_P_Intel
Employee
2,753 Views

@Fernando_Mo 
Could you please let us know if you're still seeing any issues?
We were able to make some changes based on the info above and would like to know if that helped fix your connection.

 

Thank you!

0 Kudos
AlekhyaV_Intel
Moderator
2,721 Views

Hi @Fernando_Mo ,


Are you able to connect to DevCloud through ssh? Could you please give us an update regarding this issue?


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
2,688 Views

Hi,


We assume that your issue is resolved. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Alekhya


0 Kudos
Reply