Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> SSH in shell script, Providing the password for SSH
dp022
 Posted: Nov 29 2012, 08:42 AM
Quote Post


SLF Newbie


Group: Members
Posts: 6
Member No.: 2090
Joined: 28-November 12









Hai,

Can anyone suggest me how to provide SSH password within a shell script for the remote login in Redhat Linux


Thanks in Advance. smile.gif smile.gif
PMEmail Poster
^
log69
 Posted: Nov 29 2012, 11:01 AM
Quote Post


SLF Member
***

Group: Members
Posts: 94
Member No.: 1325
Joined: 24-February 12









Use key based auth instead.
PM
^
zxq9
 Posted: Nov 29 2012, 11:11 AM
Quote Post


SLF Geek
****

Group: Members
Posts: 321
Member No.: 611
Joined: 5-August 11









QUOTE (log69 @ Nov 29 2012, 11:01 AM)
Use key based auth instead.

This.

Doing this is extensively documented in the docs and on a thousand Linux blogs and forums. Web search is your friend.
PMEmail PosterUsers Website
^
Bluejay
 Posted: Nov 29 2012, 01:10 PM
Quote Post


SLF Member
***

Group: Members
Posts: 62
Member No.: 42
Joined: 13-April 11









QUOTE (log69 @ Nov 29 2012, 06:01 AM)
Use key based auth instead.


As a last resort, like if the remote end just will not cooperate in setting up the keys, try using expect. Ugly and insecure, I know, but sometimes that's the only way things get done.
PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll