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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.