In my .bashrc I use "ssh() { screen -t "[EMAIL PROTECTED]" ssh "$@"; }" so when
I SSH to any host, it opens a new screen terminal and rename it to the
hostname. This is really useful to me as it saves me a lot of typing.

However, this only works if I ssh the standard way as in "ssh
[EMAIL PROTECTED]". I have a shell script which automates my SSH login
process by setting username and calling SSH keys. And when I run this
script screen doesn't open a new terminal and rename it anymore. I use
the script like: ./ssh.sh hostname

Is there anyway I could tell .screenrc or .bashrc to read this script
and treat it as a standard SSH connection?

Thanks for any help.


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to