From 4a9ae6fec7be5e7349a64221850d2311e0f26b2d Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Mon, 14 Apr 2014 16:37:13 +0600 Subject: [PATCH] bash: ssh() --- etc/shell/bash/aliases | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 38704ab..b7d7447 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -414,6 +414,14 @@ alias mntiso="mount -o loop -t iso9660 $1 $2" #- Поиск suid-файлов alias fsuid='find / -perm +6000 -type f -exec ls -ld {} \; | column -t | nl' +#- SSH +ssh() { #noindex + case "$1" in + sites) ssh -A -t root@193.169.52.221 -t ssh 192.168.115.50;; + * ) command ssh $*;; + esac +} + #}}} ########################################################################### #{{{ \033[00m\n\b------<Сборка_и_установка_ПО>\n ################################################################################