Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.