Gitiles
Code Review
Sign In
source.supwisdom.com
/
common
/
bash_it
/
ec3158908b943ff34cdbf0eb2dfe94fb453ad070
/
.
/
plugins
/
available
/
ssh.plugins.bash
blob: 0e50199b2641f18003e14a9c1bfa1f8b31366681 [
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
sshlist
()
{
awk
'$1 ~ /Host$/ { print $2 }'
~/.
ssh
/
config
}