LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-26-2002, 02:23 PM   #1
linowes
Member
 
Registered: Sep 2002
Location: New Hampshire
Distribution: RH8.0
Posts: 55

Rep: Reputation: 15
remote command over ssh, password prompt


Hi,
I can run a remote command over ssh from the command line, but it always prompts me for a password on the remote machine. I want to execute this command from a script when I log in. How can I avoid the password: prompt?

ssh myserver '/usr/bin/rp3 -i ppp0 &'
jonathan@myserver's password:

Also, it seems to get confused when I add an "&" to run it in background, such as

ssh myserver '/usr/bin/rp3 -i ppp0 &' &
jonathan@myserver's password:
secret
bash: secret: command not found

[2]+ Stopped ssh myserver '/usr/bin/rp3 -i ppp0 &'

it seems to interpret my password as a new command?
thanks,
 
Old 10-26-2002, 02:57 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
the onjly way you can get round a password (or rather the only legitimate way) is to set up an authorisation key for your client on the host, either rsa or dsa. this will mean that a sizeable digital key will be passed to the server, autonegotiating the login... you seem to have hit on a rather bizarre way to do what you seem to want to do though.
 
Old 10-27-2002, 08:22 PM   #3
linowes
Member
 
Registered: Sep 2002
Location: New Hampshire
Distribution: RH8.0
Posts: 55

Original Poster
Rep: Reputation: 15
>> you seem to have hit on a rather bizarre way to do what you seem to want to do though.

here's what I want to do: I have a linux server setup with a ppp dialup connection to my ISP. I want to monitor the ppp connection from my linux workstation. The only way I could figure out to do this, is to run /usr/bin/rp3 on the server and have it Xforward the graph to my desktop. I've been doing this manually by ssh'ing into that machine and then running the command. Now I want to automate the setup so it is running whenever I log in to my desktop.
Can you suggest another way?
thanks,
jonathan.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh no password prompt dtra Linux - Software 9 05-25-2005 01:08 PM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 06:57 AM
ssh password prompt delay long while chaze Linux - Networking 1 04-14-2005 10:03 PM
Login to Linux from Windows command prompt through ssh sysadmn Linux - Networking 1 03-25-2005 04:13 AM
ssh without the password prompt markehb Linux - Networking 27 03-25-2004 11:12 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration