Gitiles
Code Review
Sign In
source.supwisdom.com
/
common
/
bash_it
/
bc225b8a3181d8bf8e0592975e606d5099d27172
/
.
/
plugins
/
ssh.plugins.bash
blob: d771b3f9f84b1bf97dc003c332fe5375ee09ee50 [
file
] [
log
] [
blame
]
#!/bin/bash
function
add_ssh
()
{
echo
-
en
"\n\nHost $1\n HostName $2\n User $3\n ServerAliveInterval 30\n ServerAliveCountMax 120"
>>
~/.
ssh
/
config
}
function
sshosts
()
{
awk
'$1 ~ /Host$/ { print $2 }'
~/.
ssh
/
config
}