I have a Debian box on my work network.
I have a MacBook Pro at home, with a Debian VM running in VirtualBox.
If I try to connect to my Debian box at work, using either my Mac's OS X
or my Mac's Debian VM, I can connect successfully, but then immediately
the connection is closed:
Kents-MacBook-Pro:~ westk$ ssh -Y we...@westek.acu.edu
we...@westek.acu.edu's password:
Connection to westek.acu.edu closed by remote host.
Connection to westek.acu.edu closed.
Kents-MacBook-Pro:~ westk$
I can ssh to a different Debian box on my work network, and then do an
ssh hop from there to my work box.
Also, if I start up the Virtual Private Network (VPN) client first, so
that I'm essentially on my work network rather than on my home network,
I get connected successfully.
So apparently something about my Debian box at work doesn't like
incoming ssh sessions from non-work networks. However, I can find
nothing to configure that.
Help?
One thing I did notice in the auth logs is that the connection port
seems to change every connection attempt; is that normal?
Dec 16 07:14:42 westek sshd[9309]: Accepted password for westk from
50.26.189.223 port 57119 ssh2
Dec 16 07:14:42 westek sshd[9309]: pam_unix(sshd:session): session
opened for user westk by (uid=0)
Dec 16 07:14:42 westek systemd-logind[733]: New session c55 of user westk.
Dec 16 07:14:42 westek sshd[9309]: pam_unix(sshd:session): session
closed for user westk
Dec 16 07:14:42 westek systemd-logind[733]: Removed session c55.
Dec 16 07:15:28 westek sshd[9320]: Accepted password for westk from
150.252.166.116 port 50039 ssh2
Dec 16 07:15:28 westek sshd[9320]: pam_unix(sshd:session): session
opened for user westk by (uid=0)
Dec 16 07:15:28 westek systemd-logind[733]: New session c56 of user westk.
...
Dec 16 07:17:56 westek sshd[9370]: Accepted password for westk from
50.26.189.223 port 57125 ssh2
Dec 16 07:17:56 westek sshd[9370]: pam_unix(sshd:session): session
opened for user westk by (uid=0)
Dec 16 07:17:56 westek systemd-logind[733]: New session c57 of user westk.
Dec 16 07:17:56 westek sshd[9370]: pam_unix(sshd:session): session
closed for user westk
Dec 16 07:17:56 westek systemd-logind[733]: Removed session c57.
Dec 16 07:18:01 westek sshd[9380]: Accepted password for westk from
50.26.189.223 port 57126 ssh2
Dec 16 07:18:01 westek sshd[9380]: pam_unix(sshd:session): session
opened for user westk by (uid=0)
Dec 16 07:18:01 westek systemd-logind[733]: New session c58 of user westk.
Dec 16 07:18:01 westek sshd[9380]: pam_unix(sshd:session): session
closed for user westk
Dec 16 07:18:01 westek systemd-logind[733]: Removed session c58.
Dec 16 07:18:10 westek sshd[9389]: Accepted password for westk from
50.26.189.223 port 57127 ssh2
Dec 16 07:18:10 westek sshd[9389]: pam_unix(sshd:session): session
opened for user westk by (uid=0)
Dec 16 07:18:10 westek systemd-logind[733]: New session c59 of user westk.
Dec 16 07:18:10 westek sshd[9389]: pam_unix(sshd:session): session
closed for user westk
Dec 16 07:18:10 westek systemd-logind[733]: Removed session c59.
Thanks!
--
Kent