Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.