Can't connect to SSH after logging out
After restarting a ssh session or logging out from it, I can't connect again because of this error message:
root@mcraft:/home/dir# logout
Connection to server.com closed.
skalin@SKALIN-NOTEBOOK:/mnt/c/Users/Dominik/Desktop$ ssh [email protected]
ssh: connect to host server.comport 22: Resource temporarily unavailable
skalin@SKALIN-NOTEBOOK:/mnt/c/Users/Dominik/Desktop$ ssh [email protected]
ssh: connect to host server.com port 22: Resource temporarily unavailable
skalin@SKALIN-NOTEBOOK:/mnt/c/Users/Dominik/Desktop$ ssh [email protected]
ssh: connect to host server.com port 22: Resource temporarily unavailable
skalin@SKALIN-NOTEBOOK:/mnt/c/Users/Dominik/Desktop$ ssh [email protected]
ssh: connect to host server.com port 22: Resource temporarily unavailable
skalin@SKALIN-NOTEBOOK:/mnt/c/Users/Dominik/Desktop$
The SSH on a server is running, I can connect via Putty without a problem. The problem occurs also when I use a root account. The only thing working to restore the availability to connect is to close the Bash windows where the system can't connect to ssh, then start it again and the ssh connection is working properly
Could this be related to the rxvt problem reported by @manouchehri?
Could you please provide a link to problem he reported? I am not able to find it.
@Skalin look at @bitcrazed 's answer to #777 (@bitcrazed is like the team manager guy of the WSL/console team, iirc from an interview with him on channel 9)
I think this is what's happening to you.
@Skalin - Can you please verify if this problem still exists in the latest insider build? There have been quite a few changes in the networking stack of WSL since this post.
Closing the issue out because of inactivity. If the issue persists, please re-open or ping the thread and we will gladly re-open.
Just had
ssh: connect to host ###.###.###.### port 22: Resource temporarily unavailable
After:
sudo ssh root@###.###.###.### -L 22:localhost:22 -L 2222:localhost:8080 -i /mnt/c/PRIVATE_KEY_LOCATION
It happened after about 2 months I didn't use the Desktop PC.
Totally reinstalling WSL didn't help.
I should note that I don't have any third party antivirus (AFAICR), so it's quite odd.
Please reopen @sunilmut
It seems I was wrong. My VPS is down for some reason (I can't even access the sites from a browser neither to login from Putty or WinSCP). Yet I get the error "Resource temporarily unavailable" which I'm not sure is suitable for this problem.
In other words, @sunilmut @benhillis , the problem above is not WSL related, yet I'm really not sure I get the right error.
This problem seems to be caused due to a bug in CSF-LFD as I am able to access the VPS from other IP numbers.
I get
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to wurstbanane [192.168.1.132] port 22.
debug1: connect to address 192.168.1.132 port 22: Resource temporarily unavailable
ssh: connect to host wurstbanane port 22: Resource temporarily unavailable
but I'm able to connect via putty without a problem at all.
I am having a "Resource temporarily unavailable" error when trying to connect via ssh. Am not getting the problem when using putty. Please help, I don't want to download putty again ):
I was stumped by this. I ran a sudo apt update and it was cured. It was probably a problem inside a package.
I got this same error on 10.0.16299.309, all I had to do to repo was:
- Connect to an ssh server.
- Close the session.
- Trying to open the session again would throw the
ssh: connect to host domain.com port 22: Resource temporarily unavailable
In order to connect I was force to restart the Ubuntu shell.
A permanent solution that worked for me was adding the following lines in the ~/.ssh config file, as given in superuser by computergeek125:
Host *
ProxyCommand nc %h %p %r
@Skalin As per conversation on Twitter this morning, could you share your findings re. this is a known ssh issue on other platforms too?