You are not logged in.

#1 2016-03-25 19:16:26

dyoshida
Member
Registered: 2016-01-19
Posts: 10

SSH hangs when connecting

Today when I try to connect to either of my servers via ssh, it hangs after authentication.

Here's the tail of the debug output:

debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 91
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768

The confusing thing is that doing something like

ssh myserver bash -i

works just fine. Has anyone encountered this before?

Offline

#2 2016-03-25 19:24:55

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,869
Website

Re: SSH hangs when connecting

I'm guessing that bash is your server-side shell? Is there something strange in your ~/.bash_profile, like an endless for loop?

Just to clarify though, are these servers running Arch?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-03-25 19:36:26

dyoshida
Member
Registered: 2016-01-19
Posts: 10

Re: SSH hangs when connecting

No, these servers are running ubuntu. I share one with a friend and he was able to ssh no problem.

I was also able to ssh to them yesterday, but am not now. No changes to my .bashrc or .bash_profile since then.

Offline

#4 2016-03-25 19:46:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,869
Website

Re: SSH hangs when connecting

So what has changed since then? Anything on the client side?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-03-25 21:59:28

dyoshida
Member
Registered: 2016-01-19
Posts: 10

Re: SSH hangs when connecting

I synced pacman yesterday, and added a couple packages (which I don't think should have any impact on this). One thing that I haven't had the opportunity to try yet is SSH-ing from a different network to see if it's my ISP or router.

Offline

#6 2016-03-25 22:04:49

dyoshida
Member
Registered: 2016-01-19
Posts: 10

Re: SSH hangs when connecting

Okay so I used my phone's mobile hotspot, and was able to SSH over that, but I can't use my home network.

Any idea how I can diagnose what's breaking when I try to get an interactive session on my home wifi?

Offline

#7 2016-03-26 05:14:34

dyoshida
Member
Registered: 2016-01-19
Posts: 10

Re: SSH hangs when connecting

New information: SSH-ing using the IP instead of the alias in my ssh config file. I have no idea why this would be the case.

Offline

#8 2016-03-26 08:39:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: SSH hangs when connecting

dyoshida wrote:

New information: SSH-ing using the IP instead of the alias in my ssh config file. I have no idea why this would be the case.

Do you mean that using the IP instead of the alias works fine? Would you mind posting your ssh config file after sanitizing any sensitive information.

Side note: Please do not post multiple times in a row. If your last post has no reply, you should edit that and add the updated information in that post itself.

Offline

#9 2016-03-27 05:14:27

dyoshida
Member
Registered: 2016-01-19
Posts: 10

Re: SSH hangs when connecting

Host openstack
    HostName 192.0.2.3
    User dyoshida
    IdentityFile ~/.ssh/id_openstack

So

ssh openstack

but,

ssh -i ~/.ssh/id_openstack dyoshida@192.0.2.3

worked. However, this was likely just a fluke since it's back to not working regardless of how I issue the command now.

Offline

Board footer

Powered by FluxBB