Welcome to the Linux Foundation Forum!

Lab 5.2. Make OpenSSH Client Configuration Changes

Hi there,

I'm trying to do the lab from the subject line on this post but when I try to log in using garply, I get Permission denied, please try again, even though I'm putting the correct root password.

I found this possible solution from another post, but after applying them (without any errors), the permission denied issue is still there:

[student@main ~]$ sudo su -c 'cat /home/carlos/.ssh/authorized_keys >> /root/.ssh/authorized_keys ' [student@main ~]$ sudo chown root.root /root/.ssh/authorized_keys [student@main ~]$ sudo chmod 600 /root/.ssh/authorized_keys [student@main ~]$ ssh garply

It's worth noting that I had to create an authorized_keys file and copy the id-rsa.pub file to it (I'm mentioning it because it wasn't on the instructions).

This is my $HOME/.ssh/config file:

`host garply
hostname localhost
user root

host *
ForwardX yes`

This is my output from ls -l $HOME/.ssh/config:

-rw------- 1 carlos carlos 64 ene 11 10:57 /home/carlos/.ssh/config

And PermitRootLogin is set to yes on /etc/ssh/sshd_config

Any help would be very much appreciated!

Cheers.

Categories

Upcoming Training