Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
passwordless ssh login stopped working[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Nov 06, 2017 4:43 pm    Post subject: passwordless ssh login stopped working[solved] Reply with quote

After an emerge -uDN @world ssh has stopped allowing passwordless logins

Code:
adel@g50-80 ~/Desktop $ ssh-copy-id root@pc
/usr/local/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/adel/.ssh/id_rsa.pub"
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@pc's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'root@pc'"
and check to make sure that only the key(s) you wanted were added.

adel@g50-80 ~/Desktop $ ssh root@pc
root@pc's password:


I see the ssh agent is running:
Code:
pc ~/.ssh # ps aux | grep -i ssh
adel      2546  0.0  0.0   6748   112 ?        Ss   18:20   0:00 /usr/bin/ssh-agent -s
root     13778  0.0  0.0  26244  2724 ?        Ss   18:25   0:00 /usr/sbin/sshd -D -e
root     13798  0.0  0.0  26540  3144 ?        Ss   18:26   0:00 sshd: root@pts/0
root     13953  0.0  0.0   6748   108 ?        Ss   18:29   0:00 ssh-agent
root     14085  0.0  0.0 115120   792 pts/0    S+   18:33   0:00 grep --colour=auto -i ssh




any idea on why this is happening


Last edited by Adel Ahmed on Mon Nov 06, 2017 5:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Mon Nov 06, 2017 4:50 pm    Post subject: Reply with quote

Maybe your /etc/ssh/sshd_config has been updated to not allow ssh into root account?

Code:
PermitRootLogin no
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42587
Location: 56N 3W

PostPosted: Mon Nov 06, 2017 4:53 pm    Post subject: Reply with quote

Adel Ahmed,

Code:
ssh -vvv 
may help.
If you don't understand the output, post it all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Nov 06, 2017 5:01 pm    Post subject: Reply with quote

yeah, ssh -vvv showed me that I lacked the ssl use flags, reinstalled and everything is working fine now.
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum