Skip to content

Commit f991eb0

Browse files
committed
dont add to known hosts
1 parent 4bdbba3 commit f991eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/open_tunnel_ssh.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ port_out=5558
1717

1818
chmod 400 $KEY
1919

20-
cmd_in="ssh -f -N -T -R $remote_port_in:localhost:$port_in -i $KEY $REMOTE_HOST"
21-
cmd_out="ssh -f -N -T -R $remote_port_out:localhost:$port_out -i $KEY $REMOTE_HOST"
20+
cmd_in="ssh -f -N -T -R $remote_port_in:localhost:$port_in -i $KEY -o StrictHostKeyChecking=no $REMOTE_HOST"
21+
cmd_out="ssh -f -N -T -R $remote_port_out:localhost:$port_out -i $KEY -o StrictHostKeyChecking=no $REMOTE_HOST"
2222

2323
kill -9 $(ps aux | grep "$cmd_in" | awk '{print $2}') 2> /dev/null
2424
kill -9 $(ps aux | grep "$cmd_out" | awk '{print $2}') 2> /dev/null

0 commit comments

Comments
 (0)