Skip to content

Commit c8e3c8d

Browse files
committed
ssh接続の例にLogLevelオプションを追加し、ssh_wrapper.shのSSHコマンドのオプションを整理
1 parent db4bcba commit c8e3c8d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dummy-ssh-server.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if ! docker ps --format '{{.Ports}}' | grep -q 10022; then
77
docker run -d -p 10022:2222 -e PUBLIC_KEY="$(cat dummy.key.pub)" linuxserver/openssh-server
88
fi
99

10-
# ssh -q -o StrictHostKeyChecking=no -i dummy.key -p 10022 linuxserver.io@localhost
10+
# ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -i dummy.key -p 10022 linuxserver.io@localhost
1111

12-
# ssh -q -o StrictHostKeyChecking=no -p 443 -R0:localhost:10022 tcp@a.pinggy.io
13-
# ssh -q -o StrictHostKeyChecking=no -i dummy.key -p 33567 linuxserver.io@ubxxe-23-97-62-139.run.pinggy-free.link
12+
# ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -p 443 -R0:localhost:10022 tcp@a.pinggy.io
13+
# ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -i dummy.key -p 33567 linuxserver.io@ubxxe-23-97-62-139.run.pinggy-free.link

ssh_wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ fi
2828

2929
destination=$(jq -r .destination $filename 2> /dev/null)
3030

31-
exec $sshpass_command ssh -q -o ConnectTimeout=5 -o StrictHostKeyChecking=no "${ssh_options[@]}" "$destination"
31+
exec $sshpass_command ssh -o LogLevel=ERROR -o ConnectTimeout=5 -o StrictHostKeyChecking=no "${ssh_options[@]}" "$destination"

0 commit comments

Comments
 (0)