ssh root@localost fails

General support questions
Post Reply
mcheoti
Posts: 36
Joined: 2016/02/13 10:07:42
Location: Austria
Contact:

ssh root@localost fails

Post by mcheoti » 2017/12/15 15:18:20

HI all!

I am able to connect myself to a server via Certificate, that’s good.
I can do all of the installations but i need especially one thing.
After some problems, i tried to authenticate myself via ssh on the sever, but got the following message.

Code: Select all

ssh root@localhost
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I am sure it in only one bit, if you have an idea let me know.
Cheers
ch

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: ssh root@localost fails

Post by hunter86_bg » 2017/12/15 18:42:42

Check the

Code: Select all

PermitRootLogin
stanza in /etc/ssh/sshd_config

mcheoti
Posts: 36
Joined: 2016/02/13 10:07:42
Location: Austria
Contact:

Re: ssh root@localost fails

Post by mcheoti » 2017/12/17 11:48:04

HI, thanks for the reply. of course i uncommented it, the value is yes, but again no luck.
I am in an Cloud environment maybe that does change things. ANy other ideas ?
cheers
Ch

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: ssh root@localost fails

Post by hunter86_bg » 2017/12/17 15:12:12

Another issue is if your "/root" folder and "/root/.ssh" folder have strange permissions.
In my fedora it's:

Code: Select all

dr-xr-x---. 8 root root 4096 17 дек 17,10 /root
drwx------. 2 root root 4096 17 дек 17,10 /root/.ssh

Post Reply