Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh read from a text file 1

Status
Not open for further replies.

nimrodman

MIS
Nov 22, 2005
43
US
Could anyone help with telling me how to make ssh read from a text file, any help would b highly appreciated, thanks.
 
Code:
ssh user@host < scriptfile
Note that scriptfile cannot contain the login password. For that use shared keys or expect.

Note also that although the above method works creates a warning message. man ssh should help resolve this.

On the internet no one knows you're a dog

Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top