tags:

views:

306

answers:

2

I know it's insecure.

My school has a system that you can ssh into, but it runs a strange operating system (might be openVMS based, that's what the error messages indicate). They don't use keys, just a user/password, and then an internal application is started that actually authenticates the user. I got the u/p password from their website off of a config file, they don't care about security here.

I would like to just be able to type school_login as an alias and have it ssh fully in for me, skipping the type the password bit. Can I do this? If I add their public key, I will still be prompted for the password, right? Is there anyway I can get around it?

Thanks!

+1  A: 

You might be able to codge something up using expect.

http://bash.cyberciti.biz/security/expect-ssh-login-script/Thanks!
Hamy
+1  A: 

sshpass does this.

ephemient
Works excellent for it's purpose! Quick example - sshpass -p your_pass_here ssh user@host
Hamy