gitsshwindows-subsystem-for-linuxopenssh

SSH hangs after key is accepted on WSL Terminal


Pushing and Fetching from Git Repo's (Bitbucket and my web host) stopped working on WSL. I've discovered that connecting via ssh hangs just before the shell prompt used to appear. Using ssh -vvv shows this (I've removed things I didn't think important) :

debug1: Authentication succeeded (publickey).
Authenticated to XXX.XXXX ([XXX.XXX.XXX.XXX]:XX).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: open confirm rwindow 0 rmax 32768

It varies how much of the above is shown before hanging. This was working, but stopped. I've changed ISP and Router (I've gone from ADSL to NBN), and I thought this was the cause, but I can use PowerShell (using OpenSSH )to connect to the same server. I've tried creating new keys, but I get the same result. I just need some help on how to troubleshoot this.

I'm running Ubuntu 18.04.3 LTS on WSL 2 (Windows Build 18999, I've gone insider fast track to try and fix, wasn't working on slow track either). I'm running OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n on WSL; and OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 on PowerShell.


Solution

  • Not really an answer, but I had something wrong with my .bash_profile or .bashrc. I ended up just Resetting my Ubuntu install, and was able to set things up again.