Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found the instructions on kerneltrap's mail archive: "scp batch mode?" to be insightful an useful, however when I issue the command to close the connection

# Bring the connection down.
ssh -S /tmp/ssh_socket -O exit dummy

my ssh complains that it does not support the -O (that is upper case o) option.

My question is: Is it sufficient to delete the /tmp/ssh_socket, to properly close the connection, or am I missing some important step here?

share|improve this question
up vote 0 down vote accepted

rm is sufficient, though you can kill the control process as well with a fuser -k /tmp/ssh_socket.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.