Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot ssh into gentoo in a uml VM after upgrade!
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
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Tue Jan 05, 2016 11:49 pm    Post subject: Cannot ssh into gentoo in a uml VM after upgrade! Reply with quote

Hi all.

I have a UML VM running Gentoo.
After last update of this VM gentoo system I was unable to login it
using ssh from a kubuntu 14.04 system (the host of the VM).
I always get
key_verify failed for server_host_key
message.
openssh was one of the packages updated.

This has always worked without any problems for several years.

I have tried to delete .ssh dirs from the server and from the client.
No success.

Any ideas?

TIA for any help/comments.
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 551
Location: France

PostPosted: Wed Jan 06, 2016 10:28 am    Post subject: Reply with quote

Maybe related to this ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jan 06, 2016 7:01 pm    Post subject: Reply with quote

psdasilva,

... and root logins default to keys only.
_________________
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
dab_s_bad
n00b
n00b


Joined: 08 May 2008
Posts: 54
Location: Toledo City, Cebu, Philippines

PostPosted: Thu Jan 07, 2016 2:07 am    Post subject: Reply with quote

I was on a halt using gentoo but I installed just days ago and I thought that something was wrong with ssh.
Currently downgraded 1 level since it is working.

anyways, with the current openssh, I'm using root account and cant access the server using putty or any other thing.

my question is, if I'll use the current version, what options do I have? and/or kindly expain in a bit of detail?


thanks in advance,
dab
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1692

PostPosted: Thu Jan 07, 2016 5:21 am    Post subject: Reply with quote

well, one way (and the proper/safer way) is to log into a regular account then use su/sudo if you need to use root account. You shouldn't use root account for normal usage.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 336
Location: Stockholm

PostPosted: Thu Jan 07, 2016 7:31 am    Post subject: Reply with quote

The unpleasant thing is that if you are not logged in, you can not use ssh/putty to log on and reconfigure. :( I had to use the power switch to shut down my server. Remove disk and run "fsck".

Then edit file
Code:
/etc/ssh/sshd_config
and find "Authentication" and change one line to
Code:
PermitRootLogin yes
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Fri Jan 08, 2016 7:39 am    Post subject: Reply with quote

CneGroumF wrote:
Maybe related to this ?


The client pub key is rsa. Does this apply?
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Fri Jan 08, 2016 7:41 am    Post subject: Reply with quote

Then edit file
Code:
/etc/ssh/sshd_config
and find "Authentication" and change one line to
Code:
PermitRootLogin yes
[/quote]

I also changed this (I used to let it be the default (?)).
Same problem!
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 551
Location: France

PostPosted: Fri Jan 08, 2016 10:06 am    Post subject: Reply with quote

psdasilva wrote:
The client pub key is rsa. Does this apply?

No, but you could find any related information here, for example : https://bbs.archlinux.org/viewtopic.php?id=176698
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