Problem with ssh connection
Justin C. Sherrill
justin at shiningsilence.com
Tue Oct 24 12:30:43 PDT 2006
On Tue, October 24, 2006 3:05 pm, Saverio Iacovelli wrote:
> I've two DFly machines with sshd enabled.
> I typed sshd_enable="yes" in /etc/rc.conf, I created
> the key pair with ssh-keygen. The problem is that I
> can't to connect to 192.168.1.2 from 192.168.1.1 with
> scp for copying the id_rsa.pub file.
> Then, I moved the id_rsa.pub content in remote
> /root/.ssh/authorized_keys with pendrive, but I do not
> permissions to access from remote host.
> I always work with root account.
Your /etc/ssh/sshd_config has this line by default:
#PermitRootLogin no
(It's commented out, but it's the default value.) Either uncomment it and
change the 'no' to a 'yes', or create some non-root accounts and use those
instead of root. In the long run, you'll be better off creating non-root
accounts.
More information about the Users
mailing list