Sunday, November 23, 2008
4:41 AM

Introduction to SSH

LinuxPlanet has a nice short intro to ssh. I have her on one point, though:

The example ssh terry@host2 ls ~ is just badly quoted/escaped. There's no need to use /home/terry if you correctly escape the tilde by putting it all in quotes: ssh terry@host2 "ls ~".

This lets your shell know it's not supposed to resolve the "~" so that the shell on the other side of the ssh line will do so. See the e.g. EXPANSION section in man bash for more.

0 comments:

Post a Comment