FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bash-it/plugins/available/ssh.plugin.bash at master · gitanicsoftware/bash-it · GitHub
gitanicsoftware
bash-it
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bash-it
/
plugins
/
available
/
ssh.plugin.bash
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 436 Bytes
Breadcrumbs
bash-it
/
plugins
/
available
/
ssh.plugin.bash
Copy path
File metadata and controls
19 lines (15 loc) · 436 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cite about-plugin
about-plugin
'
ssh helper functions
'
function
add_ssh()
{
about
'
add entry to ssh config
'
param
'
1: host
'
param
'
2: hostname
'
param
'
3: user
'
group
'
ssh
'
echo
-en
"
\n\nHost
$1
\n HostName
$2
\n User
$3
\n ServerAliveInterval 30\n ServerAliveCountMax 120
"
>>
~
/.ssh/config
}
function
sshlist()
{
about
'
list hosts defined in ssh config
'
group
'
ssh
'
awk
'
$1 ~ /Host$/ { print $2 }
'
~
/.ssh/config
}
Back
|
FazBrowse Home
|
New Git URL