Re: Is it possible to pass the password in the ssh/scp command line?
From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 02/22/05
- Next message: Darren Tucker: "Re: Building OpenSSH 3.9p1 on Solaris 10"
- Previous message: Andreas F. Borchert: "Re: Building OpenSSH 3.9p1 on Solaris 10"
- In reply to: Frank Callone: "Is it possible to pass the password in the ssh/scp command line?"
- Next in thread: neville_at_whitespacestudio.com: "Re: Is it possible to pass the password in the ssh/scp command line?"
- Reply: neville_at_whitespacestudio.com: "Re: Is it possible to pass the password in the ssh/scp command line?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 22 Feb 2005 00:30:01 GMT
inn200@hotmail.com (Frank Callone) writes:
>Assume I am working on my own computer. No one else has access to it (at least for the current session).
>Now I want to use ssh. Is it possible to enter the password at the command line?
>ssh user@remotehost -p <mypassword>
Bad idea. which "remote host" is that? That suggests that you are on the
net.
Anyway, I think what y ou really want is rsa identification. On your local
computer run
ssh-keygen -t rsa
and when it asks for the name take the default, and when it asks for
password just hit return.
(Yes, this can make it dangerous if someone breaks into your machine as you
or root. On the other hand they could then install a keyboard sniffer and
get the info anyway. The main concern is if unencrypted backups are made to tape, and
someone steals the tape.)
Then do
ssh user@remotehost echo `cat .ssh/id_rsa.pub` '>>.ssh/authorized_hosts'
(this means copy the full content of the file .ssh/id_rsa.pub on your local
machine to the end of the file .ssh/authorized_hosts in the directory of
user on the remote machine)
Now you will be able to log onto user@remotehost without a password
>Or is there any other trick which prevents me from being prompted for the password?
See above.
- Next message: Darren Tucker: "Re: Building OpenSSH 3.9p1 on Solaris 10"
- Previous message: Andreas F. Borchert: "Re: Building OpenSSH 3.9p1 on Solaris 10"
- In reply to: Frank Callone: "Is it possible to pass the password in the ssh/scp command line?"
- Next in thread: neville_at_whitespacestudio.com: "Re: Is it possible to pass the password in the ssh/scp command line?"
- Reply: neville_at_whitespacestudio.com: "Re: Is it possible to pass the password in the ssh/scp command line?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|