Cannot connect using ssh with one PC but ok with another - Ask Ubuntu


i can connect remote server using 1 pc, not another, get

debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: applying options * debug2: resolving "*******" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: connecting ***** [****] port 22. debug1: connection established. debug1: permanently_set_uid: 0/0 debug1: selinux support disabled debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_rsa type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: no such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_7.2p2 ubuntu-4ubuntu2.1 ssh_exchange_identification: connection closed remote host 

i have new problem, few days ago able connect, cause behavior? why 1 pc cannot connect? use same login. also, don't know why looks identity files in /root/.ssh, since running command normal user

thanks

it looks don't have right public-key-file. try copy them working computer nonworkinig. should somewhere in home directory. id_rsa.pub.

solved if check known_hosts file , remove not working 1 , reconnect host by:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-system
find out 1 in known_hosts file nonworking 1 compare key id_rsa.pub , entry in known_hosts file.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User