Add "add_ssh" to add a new ssh host to the ~/.ssh/config file.
This commit is contained in:
5
plugins/ssh.plugins.bash
Normal file
5
plugins/ssh.plugins.bash
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
function add_ssh() {
|
||||
echo -en "\n\nHost $1\n HostName $2\n User $3" >> ~/.ssh/config
|
||||
}
|
||||
Reference in New Issue
Block a user