2
Contributors
7
Replies
8
Views
10 Years
Discussion Span
Last Post by sn4rf3r
0

check the permissions on the /home and /home/.ssh folders of both machines. you can also use the -v option with ssh to output all debugging to stdout.

ssh -v -l user machine
0

check the permissions on the /home and /home/.ssh folders of both machines. you can also use the -v option with ssh to output all debugging to stdout.

ssh -v -l user machine

Thanks for the quick response.
I have tried as you told way also, result like this

[user@server (Di Okt 31 07:11:58) root]$ssh -v -l remote_user remote_server
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to remote_server [remote_server] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'remote_server' is known and matches the RSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user/.ssh/identity
debug1: Offering public key: /home/user/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Next authentication method: password
remote_user@remote_server's password:

thanks for advance to help to this isssue.


with regards,
~Chandran

0

so you moved the id_rsa.pub or id_dsa.pub file to the remote server and added the contents to the .ssh/authorized_keys file? It might be authorized_keys2 depending on the config file. it kinda sounds like you either moved the wrong file, IE your private key or you need to tweak teh config file.

0

so you moved the id_rsa.pub or id_dsa.pub file to the remote server and added the contents to the .ssh/authorized_keys file? It might be authorized_keys2 depending on the config file. it kinda sounds like you either moved the wrong file, IE your private key or you need to tweak teh config file.

Hi,
Thanks for response, i copied 1d_rsa.pub key to remote server and append to authorized_keys2. In the config like this authorized_keys2.

What i am done is correct?

thnaks,
~Chandran

0

check the permissions on the authorized_keys2 file and you home directory, maybe run the ssh -v again.

0

check the permissions on the authorized_keys2 file and you home directory, maybe run the ssh -v again.

Permission i given 600 to remote user /home/user/.ssh


thanks,
Chandran

0

how about on the local machine, ssh will not accept a key from a dir with loose permissions.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.