• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 988
  • Last Modified:

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_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,password,keyboard-interactive
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,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
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?
0
pixitron
Asked:
pixitron
  • 2
1 Solution
 
grbladesCommented:
Hi pixitron,
On newer versions of SSH the authorized_keys file holds the SSH1 and SSH2 entries. Try renameing your file and see if it works.
0
 
grbladesCommented:
Also make sure the permissions on the .ssh directory are 700
0
 
pixitronAuthor Commented:
sweet that worked!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now