SSH freezes on Mac Book Pro; AFS and network settings?

I have a problem with SSH hanging on my Mac Book Pro. This only happens to me when I get back from work after I used SSH at work. Three factors I came across are SSH, our AFS network drive network, and the way we connect to the network.

At work, we use an Kerberos-based AFS drive to do all our software development work. I authenticate with Kerberos to access the AFS drive, where all my source code lives, but I open the local editor (Eclipse), which refers to files on the AFS drive. Whenever I need to compile my code, I use SSH for my development server (which is also authenticated for the AFS drive) and compiles from there. (Sanity Note: I know this is a super stupid setup, but I promise I have NOTHING to do with this. I'm just doing what I have.)

For my network settings, I use automatic location all the time. For this configuration, I have built-in Ethernet en1 configured to use DHCP and our company DNS server when I am at work (there is no wireless access). When I get home, I connect to my home network via a wireless network, again using DHCP.

I have a hunch that connecting an AFS / Ethernet configuration is somehow a criminal. Restarting the SSH daemon does not fix the problem. The only way I found to fix the problem is to restart the computer every time I want to use SSH. Keep in mind that I do not have other (known) problems on the network when I'm at home, when I had a laptop at work.

I have an employee who told me the same problem on their MBP.

. . !

+3
3

, - Kerberos, , , . , , .

+1

" SSH"?

, ssh , . , escape ssh ( : '~), escape-, ".". .

escape- ssh ​​ ~?, SSSS OpenSSH:

Supported escape sequences:
~.  - terminate connection
~B  - send a BREAK to the remote system
~C  - open a command line
~R  - Request rekey (SSH protocol 2 only)
~^Z - suspend ssh
~#  - list forwarded connections
~&  - background ssh (when waiting for connections to terminate)
~?  - this message
~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)

~. , , escape- ,

EscapeChar ~

~/.ssh/config /etc/ssh _config

escape- ,

killall ssh

ssh, .

SSH- , sshd ssh, - .

+3

: ssh Rogue Amoeba Audio Hijack Pro. ssh (sudo). 2.8.1 ...

. http://www.macobserver.com/article/2008/03/19.8.shtml .

0

Source: https://habr.com/ru/post/1699542/


All Articles