Re: Is it possible to pass the password in the ssh/scp command line?

From: Matthias Posseldt (matthi_at_gmx.li)
Date: 02/25/05


Date: Fri, 25 Feb 2005 20:21:19 +0100

Frank Callone wrote:
> Now I want to use ssh. Is it possible to enter the password at the command
> line? e.g.
>
> ssh user@remotehost -p <mypassword>
>
> Or is there any other trick which prevents me from being prompted for the
> password? E.g.
>
> ssh user@remotehost -getpasswd < fromfile.txt

You can use public key authentication. Have a look into the documentation
for the configuration.

Regards,
Matthias



Relevant Pages

  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)
  • Re: [Info-ingres] problems with ssh
    ... Check the SSHD log on the server for errors. ... ancient version of SSH, unfortunately. ... the command seems to have functioned - but just wont terminate and leaves a process hanging around. ... Duckman: You got anymore of those glues? ...
    (comp.databases.ingres)
  • Scripts using SSH and SSH_ASKPASS
    ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
    (comp.security.ssh)
  • Re: embedding sshd into a server
    ... Right now it listens on a ... Copy the normal ssh config files to a new "privatessh" config: ... A simple way to force a certain command is to change ...
    (comp.security.ssh)