I often use this command to connect to another server with x forwarding:
[myuser@server1]$: ssh -Y 10.32.45.123
(10.32.45.123 is server2)
[email protected]'s password:
[$myuser@server2]:$
I need an alias which will ssh to server2 with -Y option, and also enter my password for me.
How do I do it?
Best Regards
ssh-keygen -t rsa
accept defaults. Copy that file to usingssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
then you can usessh -Y '[email protected]'
. Use this if you need more help. (Although its from Debian, it applies to all Linux flavours). Hope this helps.