1752625 Members
4678 Online
108788 Solutions
New Discussion

Re: SSHkey

 
SOLVED
Go to solution
kunjuttan
Super Advisor

SSHkey

Hi All,

 

    How to allow a user to login from a remote machine via ssh without password?

4 REPLIES 4
Naj
Valued Contributor

Re: SSHkey

HI

 

First create the key (unless already did) with "ssh-keygen -t rsa"

then copy the key to the remote station with
"ssh-copy-id user@machine"


replace the user/machine with the actual username and machine name.
If still doesn't work - check the file /etc/ssh/sshd_config


Pay attention to entries like:
PubkeyAuthentication
PermitRootLogin
all should be set to yes.

 

Thanks

 

BR

Naj


____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Dennis Handly
Acclaimed Contributor
kunjuttan
Super Advisor

Re: SSHkey

Hi,

 

 Thanks for the replies.But still I couldnt sort out the problem.ssh-copy-id  command is giving the error like command not found.And in /etc there is no ssh directory.Now wht to do??

kunjuttan
Super Advisor
Solution

Re: SSHkey

Hi

 

Thanks for your valuable inputs.I resolved the issue.