Question

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!

Was it helpful?

Solution

sshpass does this.

OTHER TIPS

You might be able to codge something up using expect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top