Originally posted by lethe
why is it bad? i guess because people can read your password. if it is only in your head then no one can steal it, right?
ding! ding! that's it!
two issues: 1st, telnet sends all info as clear text, meaning someone using a packet sniffer can find out all
the commands you typed using telnet - username, password, commands you executed, output of those commands, etc.; 2nd, your idea requires you to store your password in a file somewhere on your disk - also bad!
use ssh rather than telnet. it uses an encrypted data-stream.
you can also configure ssh to auto-magically accept the connection (passwordless logons), without sending the password, by copying your local authentication keys to your remote keyfile. this would be useful for your script idea.
unfortunately, that explanation would take a few pages, and I'd basically be plagiarizing the ssh chapter from Building Linux VPNs
. Great book!