0

Possible Duplicate:
Shell Script for logging into a ssh server

I need to connect via SSH to a remote server, however I must do this with out interactive mode and with out use Public keys and also with out install extra packes like sshpass or expect because it's a unix system based, I was wondering if it's possible using a script or send the pass together the command ssh connection, something like this:

$: ssh user@remoteserver \npassword
fers
  • 59
  • 4

2 Answers2

3

No, it deliberately isn't possible to do this. You will need to use one of those tools, or a public key without a passphrase.

Daniel Pittman
  • 7,554
  • 2
  • 31
  • 18
0

If you really need to do is this way consider using Expect like so:

http://bash.cyberciti.biz/security/expect-ssh-login-script/

  • 1
    Please provide [some context for links](http://unix.stackexchange.com/questions/how-to-answer) so that the answer is not dependant on an external site. – jasonwryan Feb 20 '12 at 06:28