I cannot ssh into my server from one of my Ubuntu installations, but if I use another Ubuntu installation or Windows operating system connecting with SSH works smoothly.
So something is broken in one of my Ubuntu installation and I'm struggling to find the exact problem.
I've tried reinstalling ssh/openssh-client/openssh-/ssh.
Here is few lines from verbose output :
ssh username@MYSERVERADDRESS -v
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to MYSERVER ([MYSERVERADDRESS]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
packet_write_wait: Connection to MYSERVERADDRESS port 22: Broken pipe
Tried many different solutions from googling but never worked any. Deleted .ssh directory, Deleted /etc/ssh/ssh_config (It was automatically created again with default values).
One more information is that problem isn't from server-side as I can SSH into server using another os and same network.
Update :
Firewall disabled
Server hosted on cloud
I've 3 different machines with dual booted Windows and Linux.
SSH working perfectly all machines except one in which Linux is troubling connection, and in same machine using Windows everything working fines.
More clear view of point 4 : Total 3 machines each loaded with Linux and Windows (dual boot), and only one machine while running Linux having problem with SSH.
Let me know if you need more data from me (except SERVER ADDRESS and USERNAME).
username@MYSERVERADDRESSthe same in all cases?SERVERADDRESSa private IP address (such as one in the range 192.168.x.x), or a public address on the Internet?/etc/ssh/ssh_configand~/.ssh/config? Does the disconnect come immediately after you connect?