1834746 Members
2810 Online
110070 Solutions
New Discussion

ssh key generation

 
Indrajit_1
Valued Contributor

ssh key generation

Hi All;

i have tow Servers, HostA & HostB. After loggin in HostB, if i ssh to HostA it should not ask me for password. i think, i need to re-generate ssh key (/home/user1/.ssh2/hostkey/xxx.pub). How do i go ahead and generate a new ssh key? Need help.

Cheers;
Indrajit
Never Ever Give Up
4 REPLIES 4
RAC_1
Honored Contributor

Re: ssh key generation

man ssh-keygen

ssh-keygen -t dsa
There is no substitute to HARDWORK
Darrel Louis
Honored Contributor

Re: ssh key generation

Hi,

Are you working with hostbased authentication?
Check your sshd_config for the follwoing:
HostbasedAuthentication yes
PasswordAuthentication no

And further the suggestion RAC already provided.

GoodLuck

Darrel
Darrel Louis
Honored Contributor

Re: ssh key generation

Hi,

Don't forget to restart sshd daemon when modifying the sshd_config file.

Darrel
Khashru
Valued Contributor

Re: ssh key generation

Please find the attached document about setting up password less ssh.