From b41d704705f0b0a8d232d663dea50d1715d27b79 Mon Sep 17 00:00:00 2001 From: 12nick12 Date: Tue, 5 Jun 2018 15:46:42 -0400 Subject: [PATCH] Update sshjump.new --- server/sshjump.new | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sshjump.new b/server/sshjump.new index d3913e0..917fcb3 100644 --- a/server/sshjump.new +++ b/server/sshjump.new @@ -9,13 +9,13 @@ fi if [ $arg1 = host ]; then user=$2 host=$3 - port=$(sqlite3 /opt/sshjump/sshjump.db 'select port from sshjump where host = host') + port=$(sqlite3 /opt/sshjump/sshjump.db "select port from sshjump where host = \"$host\"") ssh -p $port $user@localhost fi if [ $arg1 = id ]; then user=$2 id=$3 - port=$(sqlite3 /opt/sshjump/sshjump.db 'select port from sshjump where id = id') + port=$(sqlite3 /opt/sshjump/sshjump.db "select port from sshjump where id = \"$id\"") ssh -p $port $user@localhost fi