Knarf Reueh <knarf...@gmail.com> wrote:
Hello,
I have setup an Ubuntu 20.04 virtual machine on my second host (host2). When I ssh into the vm from host2 everything works.
But when I ssh into the vm from my main host (Host1) it gets stuck before asking for the password.
ssh verbose (ssh -vvv name@server) gives the output,
debug2: ssh_connect_direct
debug1: Connecting to 192.168.150.139 [192.168.150.139] port 22.
debug1: Connection established.
....
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
END OF OUTPUT! Her it stucks.
Each of the systems are in diff
Hello,
I have setup an Ubuntu 20.04 virtual machine on my second host (host2). When I ssh into the vm from host2 everything works.
But when I ssh into the vm from my main host (Host1) it gets stuck before asking for the password.
ssh verbose (ssh -vvv name@server) gives the output,
debug2: ssh_connect_direct
debug1: Connecting to 192.168.150.139 [192.168.150.139] port 22.
debug1: Connection established.
....
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
END OF OUTPUT! Her it stucks.
Each of the systems are in different network segments. VM has a bridged network to the network adapter of its host.
PING 192.168.150.139 (192.168.150.139) 56(84) Bytes Daten.
64 Bytes von 192.168.150.139: icmp_seq=1 ttl=63 Zeit=1.30 ms
Von 192.168.1.1 icmp_seq=2 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=2 ttl=63 Zeit=0.988 ms
Von 192.168.1.1 icmp_seq=3 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=3 ttl=63 Zeit=1.11 ms
Von 192.168.1.1 icmp_seq=4 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=4 ttl=63 Zeit=1.06 ms
^C
--- 192.168.150.139 ping statistics ---
4 Pakete ?bertragen, 4 empfangen, +3 Fehler, 0% Paketverlust, Zeit 3004ms
rtt min/avg/max/mdev = 0.988/1.114/1.296/0.113 ms
I'm not a network expert but where does this nexthop come from and is that the reason for that behaviour?
bob prohaska schrieb am Samstag, 19. Februar 2022 um 20:34:34 UTC+1:
Knarf Reueh <knarf...@gmail.com> wrote:
Hello,How does ping behave?
I have setup an Ubuntu 20.04 virtual machine on my second host (host2). When I ssh into the vm from host2 everything works.
But when I ssh into the vm from my main host (Host1) it gets stuck before asking for the password.
ssh verbose (ssh -vvv name@server) gives the output,
debug2: ssh_connect_direct
debug1: Connecting to 192.168.150.139 [192.168.150.139] port 22.
debug1: Connection established.
....
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
END OF OUTPUT! Her it stucks.
Each of the systems are in different network segments. VM has a bridged network to the network adapter of its host.
hth,
bob prohaska
Knarf Reueh <knarf.reueh@gmail.com> wrote:umleiten=redirect. Maybe 18.1.168.192 is the host for the vm
PING 192.168.150.139 (192.168.150.139) 56(84) Bytes Daten.
64 Bytes von 192.168.150.139: icmp_seq=1 ttl=63 Zeit=1.30 ms
Von 192.168.1.1 icmp_seq=2 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=2 ttl=63 Zeit=0.988 ms
Von 192.168.1.1 icmp_seq=3 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=3 ttl=63 Zeit=1.11 ms
Von 192.168.1.1 icmp_seq=4 Host umleiten(New nexthop: 18.1.168.192)
64 Bytes von 192.168.150.139: icmp_seq=4 ttl=63 Zeit=1.06 ms
^C
--- 192.168.150.139 ping statistics ---
4 Pakete ?bertragen, 4 empfangen, +3 Fehler, 0% Paketverlust, Zeit 3004ms
rtt min/avg/max/mdev = 0.988/1.114/1.296/0.113 ms
I'm not a network expert but where does this nexthop come from and is that the reason for that behaviour?
I'm no expert either and have no idea what nexthop is. Never seen it on
any of my machines, nothing in the man pages. Perhaps Ubuntu specific?
I suggested the test only because of a problem I've been having with
ssh on FreeBSD: The first symptom was an ssh login stalling after
asking for and receiving a password, with the login subsequently
timing out.
It eventually developed that my machines weren't responnding correctly
to ping, returning only 1% of packets. If that was the case for you it
would be interesting, but clearly you are seeing something different.
bob prohaska schrieb am Samstag, 19. Februar 2022 um 20:34:34 UTC+1:
Knarf Reueh <knarf...@gmail.com> wrote:
Hello,How does ping behave?
I have setup an Ubuntu 20.04 virtual machine on my second host (host2). When I ssh into the vm from host2 everything works.
But when I ssh into the vm from my main host (Host1) it gets stuck before asking for the password.
ssh verbose (ssh -vvv name@server) gives the output,
debug2: ssh_connect_direct
debug1: Connecting to 192.168.150.139 [192.168.150.139] port 22.
debug1: Connection established.
....
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
END OF OUTPUT! Her it stucks.
Each of the systems are in different network segments. VM has a bridged network to the network adapter of its host.
hth,
bob prohaska
Any help will be great.
Hello Grant Taylor,
thanks for your reply. As I told, my knowledge about networking is
basic, not advanced. I had tcpdump used before so far but was always
unable to interpret the output. So ... Good Luck (see above).
I could not find any special but I found a bug in Ubuntu that looks
a bit like that behavior. As described there, the ip address of the
hop is printed in reverse order. To explain, here is the route as
printed from ping called on Host1:
ping -R 192.168.150.139
PING 192.168.150.139 (192.168.150.139) 56(124) Bytes Daten.
64 Bytes von 192.168.150.139: icmp_seq=1 ttl=63 Zeit=1.37 ms
RR: 192.168.1.20 (Host 1)
192.168.1.1 (router and dhcp server)
192.168.150.1 ?? guess a virtual router on host2 that hosts the vm 192.168.150.139 (vm)
192.168.150.139
192.168.1.18 (host2)
192.168.1.20 (host1)
So the route backwards from ..139 to ..1.20 takes another route. The
nexthop printed out by ping ist 18.1.168.192 (so in reverse
order). Magic.
See the bug described here: https://bugs.launchpad.net/ubuntu/+source/iputils/+bug/1892108
And here are tcpdumps:
So, any idea?
And: How to change the MTU for the communication?I usually will rely on iptables TCPMSS target to modify MTU for specific connections. -- I usually have to look it up because I do it infrequently.
Hello,
after talking to a friend who is a network specialist I came to the
decision, that I first have to setup my network the right way. He
told me, that I could not set up a bridged network the way I did and
have to assign different IP addresses to the same link (or something
like that).
Anyway: The observed behavior of ssh has nothing to do with ssh itself
so my problem is more network related and posting these things here
is out of topic.
So thanks everybody for your support.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 403 |
Nodes: | 16 (2 / 14) |
Uptime: | 111:42:36 |
Calls: | 8,465 |
Calls today: | 2 |
Files: | 13,181 |
Messages: | 5,909,936 |