Advertisement

Need help with basic Linux Shell Scripting

Started by May 29, 2007 02:38 PM
9 comments, last by Sander 17 years, 5 months ago
Quote: Original post by Khaos Dragon
I am actually tunneling from one ssh server to another so flagging a key as a password for the first machine won't fix the issue.


Sure it will. Just put your computer's public key into ~/.ssh/authorized_keys on the first server and put the public key of the first server into ~/.ssh/authorized_keys on the second server.

Also, I think ssh can read from standard input. So if you have a file (somecommands.txt) that contains come commands, you can do:

$ ssh username@server < commands.txt

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

This topic is closed to new replies.

Advertisement