Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
share|improve this question

marked as duplicate by Gilles, Mat, Michael Mrozek Feb 23 '12 at 7:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Or with some library on Java –  fers Feb 19 '12 at 21:09
    
Seemingly needless crosspost of stackoverflow.com/questions/9283360/… –  Chris Down Feb 19 '12 at 21:59

2 Answers 2

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.

share|improve this answer
2  
That's wrong. The makers of ssh deliberately make it difficult, because it's a bad idea, but it is possible. –  Gilles Feb 19 '12 at 23:44

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

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

share|improve this answer
1  
Please provide some context for links so that the answer is not dependant on an external site. –  jasonwryan Feb 20 '12 at 6:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.