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

From: Frank Callone (inn200_at_hotmail.com)
Date: 02/21/05


Date: Mon, 21 Feb 2005 20:21:45 +0100

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?
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

or by using some certificate e.g.

ssh user@remotehost -usecertinsteadpasswd /var/user/mycert.pkcs

Frank



Relevant Pages

  • Re: [kde-linux] Sessions names
    ... ssh 192.168.2.80??? ... You can write a wrapper script that would start ssh to some ip and rename the ... konsole session dynamically. ... dcop call to konsole you need to know the pid of konsole. ...
    (KDE)
  • RE: unexplained pausing/freezing of SSH Terminal Sessions ?
    ... Do you use expect to initiate your SSH connections? ... i'm having an SSH Terminal Session "issue". ... These machines define an internal/private ...
    (SSH)
  • SSH connection thru corporate firewall to home sshd on Port 80
    ... I have a FreeBSD server running sshd listening on port 80 at home. ... I can successfully establish a ssh session from a Winnt/putty:80 box the ... When I take the same Winnt machine behind a corporate firewall which passes ...
    (comp.security.ssh)
  • Sun_SSH_1.0
    ... I have a problem with Sun's SSH. ... or one SUN_SSH_1.0 session talk to an OpenSSH session. ... This e-mail and any attachments are confidential and may contain legally ...
    (SunManagers)
  • Re: Is there a way to speed up and resume a SSH X forwarding session from a disconnection?
    ... there were to be a disconnection, is it possible to resume the SSH X ... Or do I have to make a new session ... you set DISPLAY to that pseudo-display, and all X apps are directed ... impossible to switch X clients from one display to another otherwise. ...
    (comp.os.linux.x)