pixitron
asked on
setting up ssh trusted machine
Hi,
I'm try to setup ssh so i dont have to repeatly enter my password. I've type:
ssh-keygen -t dsa
have tried it with and without a passphrase.
I've then copied the id_dsa.pub to $home/.ssh/
and renamed it to authorized_keys2. I've double check the permissions - its 600 - which i think is correct.
here is an excert of the output from ssh -v ip_address
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'x.x.x.x' is known and matches the RSA host key.
debug1: Found key in /home/daniel/.ssh/known_ho sts: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,password,keyboar d-interact ive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/daniel/.ssh/identity
debug1: Trying private key: /home/daniel/.ssh/id_rsa
debug1: Offering public key: /home/daniel/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboar d-interact ive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboar d-interact ive
debug1: Next authentication method: password
My distributation is fedora core 2 on the server and the "client" machine is via the cygwin in win2000.
any thoughts on whats going wrong?
Once this is setup I presume I'll be able to use scp without having to enter my password as well?
I'm try to setup ssh so i dont have to repeatly enter my password. I've type:
ssh-keygen -t dsa
have tried it with and without a passphrase.
I've then copied the id_dsa.pub to $home/.ssh/
and renamed it to authorized_keys2. I've double check the permissions - its 600 - which i think is correct.
here is an excert of the output from ssh -v ip_address
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'x.x.x.x' is known and matches the RSA host key.
debug1: Found key in /home/daniel/.ssh/known_ho
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,password,keyboar
debug1: Next authentication method: publickey
debug1: Trying private key: /home/daniel/.ssh/identity
debug1: Trying private key: /home/daniel/.ssh/id_rsa
debug1: Offering public key: /home/daniel/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboar
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboar
debug1: Next authentication method: password
My distributation is fedora core 2 on the server and the "client" machine is via the cygwin in win2000.
any thoughts on whats going wrong?
Once this is setup I presume I'll be able to use scp without having to enter my password as well?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also make sure the permissions on the .ssh directory are 700
ASKER
sweet that worked!