Score:0

KVM bridged guest ssh permission denied

aw flag

I am able to ping my virtual machine and also have a satisfying response from ssh service using telnet, but I get 'permission denied' error whenever I attempt a ssh connection from a remote host. Connection is just fine when connecting in loopback on 127.0.0.1 with the same credentials.

Any hints?

vidarlo avatar
ar flag
What does the logs show?
Giovanni Passetti avatar
aw flag
They just show authentication failure when connecting from external host, and also say that /etc/securetty is missing
Michael Hampton avatar
cz flag
Check your firewalls.
Giovanni Passetti avatar
aw flag
ufw disabled. It's as if password gets encoded wrong when entered from the ssh authentication terminal, but that's impossible
Score:1
br flag

Check:

  • /etc/hosts.deny / hosts.allow
  • "Match Address" in your sshd config

(i.e. something like:

PasswordAuthentication no
PubkeyAuthentication no
Match Address 127.0.0.*
    PubkeyAuthentication yes
    PasswordAuthentication yes

)

Giovanni Passetti avatar
aw flag
/etc/hosts.deny / hosts.allow are entirely commented out; No 'Match Address' settings show up in sshd config
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.