Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-12-2004, 09:28 AM   #1
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
Pass password with ssh command

Hey Y'all,

I'm trying to put together a script to remotely connect to clients via ssh and execute a script, such as mount then rpm -U. My first obstacle is how to pass a password with the username in the ssh command. I have not seen this in the documentation and am doubtful that this is even possible.
Anyone had any luck with this type of thing?

thanks in advance.
Old 05-12-2004, 09:50 AM   #2
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
read "man ssh" carefully
entering a password is not the only way for authentication
Old 05-12-2004, 09:55 AM   #3
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
This is what you are looking for. I am using this to connect via cron and us rsync to remotely back up files. If you need help I can help you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you specift password on SSH command line? The_JinJ Linux - Newbie 4 07-26-2005 06:55 AM
SSH and Ask-pass under gnome ctyler Linux - Security 1 11-24-2004 01:33 AM
pass root password in cgi script file explorer Linux - General 3 04-06-2004 11:13 PM
Can you su and enter pass in same command Onemessedupjedi Slackware 3 11-19-2003 10:48 PM
remote command over ssh, password prompt linowes Linux - General 2 10-27-2002 09:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration