blah bloh

This commit is contained in:
Frank Villaro-Dixon 2016-08-17 21:10:19 +02:00
parent 6ce0fb1f9b
commit c102d5ef24
4 changed files with 34 additions and 23 deletions

View file

@ -224,29 +224,31 @@ function man { #{{{
man "$@" man "$@"
} #}}} } #}}}
alias ssh='my_ssh' if [[ -z $SSH_CLIENT ]]; then
function my_ssh #{{{ alias ssh='my_ssh'
{ function my_ssh #{{{
ssh-add -l | grep id_rsa.auth > /dev/null {
if [ $? -eq 1 ]; then ssh-add -l | grep id_rsa.auth > /dev/null
echo -e "$RED Please enter ssh passphrase ;) $DFT" if [ $? -eq 1 ]; then
ssh-add ~/.ssh/id_rsa.auth echo -e "$RED Please enter ssh passphrase ;) $DFT"
fi; ssh-add ~/.ssh/id_rsa.auth
/usr/bin/ssh "$@" fi;
} /usr/bin/ssh "$@"
# }}} }
# }}}
alias scp='my_scp' alias scp='my_scp'
function my_scp #{{{ function my_scp #{{{
{ {
ssh-add -l | grep id_rsa.auth > /dev/null ssh-add -l | grep id_rsa.auth > /dev/null
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
echo -e "$RED Please enter ssh passphrase ;) $DFT" echo -e "$RED Please enter ssh passphrase ;) $DFT"
ssh-add ~/.ssh/id_rsa.auth ssh-add ~/.ssh/id_rsa.auth
fi; fi;
/usr/bin/scp "$@" /usr/bin/scp "$@"
} }
# }}} # }}}
fi
function logs #{{{ function logs #{{{
{ {
@ -585,6 +587,11 @@ function cttc
fi fi
} }
function dockat
{
docker attach -ti $1 bash
}
# }}} # }}}
SSHAGENT=/usr/bin/ssh-agent SSHAGENT=/usr/bin/ssh-agent

View file

@ -1,2 +1,2 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXvejaLTKO/MuSRi0YBntTaraYasUEpzQG21882dbibxPCjaClP8YKRTHbWQJJewkKMkRyn1oEwkLghuKA2wJ/KjxhU/0SAJO/eOeYp76FR8am2nNsSXJfoEXHaVanG6TeE9Vxi5+2Xq5g9hsZCuYqZtF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O/jaT4wkZz25vfYeidn/4D4zpveQe8J6vWMD/SpT+YUaPY8S5SMRlUQnAiLp8TAsu1W3VpyfyR9zb4miDuPYnYHY9uQGo root@backupbox ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD6mBZ11FjmSAdvnkCRzysyCQUAhofaxP6INI5qZ3NeI9AIj3ryRiUAzsbpI7itXRGwmw/kuvo68GHHPonECgcipP+11D7/B3wE2pC8Vs45VKJzO0ahTgxom6locS5KZ0ayk3259Qu+BB3xGrTN+dzIgWUiUdDD0IG0xjwyEwNCMyqwbxeXwEJfrKzWvJ/gZZW8wOFuxCmxDYcpBq3GM+i9Q0v+aSYVXHWUm+oymr1oGFqRlwLiU9bH8D0EFRNABwKkP3E+XWclpgIPzvjfVjll8F9G2n00zby5zFtU7/ghPIqiTAdfR7S2IRF4fZ4Qm+QzxVl6oMbXhJbccZ2Zbzjz root@backupbox

View file

@ -65,3 +65,6 @@ host erivers
port 22123 port 22123
#2001:620:600:ac00:1a03:73ff:fe23:fc23/ #2001:620:600:ac00:1a03:73ff:fe23:fc23/
hostname 129.194.173.249 hostname 129.194.173.249
host osmutils
ProxyCommand ssh vi-di.fr nc 192.168.42.2 %p

View file

@ -94,3 +94,4 @@ Thinkpad
Aurelia Aurelia
Victorinox Victorinox
kevlar kevlar
bbox