22 lines
378 B
Bash
22 lines
378 B
Bash
wx-ssh(){
|
|
wx-login
|
|
|
|
mkdir -p $HOME/.ssh/keys
|
|
chmod 700 -R $HOME/.ssh/keys
|
|
mkdir -p $HOME/.ssh/multiplex
|
|
chmod 700 -R $HOME/.ssh/multiplex
|
|
|
|
case $1 in
|
|
keys)
|
|
wx-ssh-keys $2 $3
|
|
;;
|
|
config)
|
|
wx-ssh-config $2
|
|
;;
|
|
*)
|
|
wx-header "SSH"
|
|
wx-stop
|
|
;;
|
|
esac
|
|
}
|