LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-12-2004, 08:28 AM   #1
BruceC
Member
 
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, 08:50 AM   #2
Demonbane
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, 08:55 AM   #3
phatboyz
Member
 
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.

http://www.linuxquestions.org/questi...ticle&artid=79
 
  


Reply



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 05:55 AM
SSH and Ask-pass under gnome ctyler Linux - Security 1 11-24-2004 12:33 AM
pass root password in cgi script file explorer Linux - General 3 04-06-2004 10:13 PM
Can you su and enter pass in same command Onemessedupjedi Slackware 3 11-19-2003 09:48 PM
remote command over ssh, password prompt linowes Linux - General 2 10-27-2002 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 AM.

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