cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dat63
Observer
Observer
234 Views
Registered: ‎08-28-2018

Unable to establish a SSH connection with ZCU104

Jump to solution

Hi, 

I get always errors when I try to establish a SSH connection to my ZCU104 board from an Ubuntu machine. I receive two different type of errors as indicated in the following:

 

****** First Error *******

ssh -v root@192.168.1.8
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.8 [192.168.1.8] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version dropbear_2019.78
debug1: no match: dropbear_2019.78
debug1: Authenticating to 192.168.1.8:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:fJsrjLw6VFUOcp3nmmdI9gk2JV3Ve4XvkFuLBt49C1g
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:fJsrjLw6VFUOcp3nmmdI9gk2JV3Ve4XvkFuLBt49C1g.
Please contact your system administrator.
Add correct host key in /home/dat/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/dat/.ssh/known_hosts:2
remove with:
ssh-keygen -f "/home/dat/.ssh/known_hosts" -R "192.168.1.8"
RSA host key for 192.168.1.8 has changed and you have requested strict checking.
Host key verification failed.

 

****** Second Error *******

ssh -v root@192.168.1.98
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.98 [192.168.1.98] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dat/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version dropbear_2019.78
debug1: no match: dropbear_2019.78
debug1: Authenticating to 192.168.1.98:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:yRcx4ih4P2YIOxbVdjGg7xrE3S4BKlCFYupYdisdpyY
The authenticity of host '192.168.1.98 (192.168.1.98)' can't be established.
RSA key fingerprint is SHA256:yRcx4ih4P2YIOxbVdjGg7xrE3S4BKlCFYupYdisdpyY.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.98' (RSA) to the list of known hosts.
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/dat/.ssh/id_rsa
debug1: Trying private key: /home/dat/.ssh/id_dsa
debug1: Trying private key: /home/dat/.ssh/id_ecdsa
debug1: Trying private key: /home/dat/.ssh/id_ed25519
debug1: Next authentication method: password
root@192.168.1.98's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@192.168.1.98's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@192.168.1.98's password:
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
root@192.168.1.98: Permission denied (publickey,password)

 

Any help is highly appreciated

Regards

Daniele

 

0 Kudos
1 Solution

Accepted Solutions
shabbirk
Moderator
Moderator
166 Views
Registered: ‎12-04-2016

Hi @dat63 

Refer to this AR to enable ssh support in petalinux

https://www.xilinx.com/support/answers/75610.html

 

Regards

Shabbir

View solution in original post

0 Kudos
2 Replies
shabbirk
Moderator
Moderator
167 Views
Registered: ‎12-04-2016

Hi @dat63 

Refer to this AR to enable ssh support in petalinux

https://www.xilinx.com/support/answers/75610.html

 

Regards

Shabbir

View solution in original post

0 Kudos
dat63
Observer
Observer
134 Views
Registered: ‎08-28-2018
Spoiler
Hi @shabbirk ,
I followed your indication. Now I am able to connect as user: petalinux, pwd: petalinux, but I am still refused if I try to connect as root, root
Regards
Daniele

0 Kudos