12 lines
161 B
Bash
Executable File
12 lines
161 B
Bash
Executable File
#!/bin/bash
|
|
|
|
endpoint=$1
|
|
|
|
if [[ $endpoint == *:* ]]; then
|
|
host=${endpoint%:*}
|
|
port=${endpoint#*:}
|
|
mosh --ssh="ssh -p $port" $host
|
|
else
|
|
mosh $endpoint
|
|
fi
|