Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH autologin __without__ using keys :(

Tags:

ssh

ssh-keys

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!

like image 403
Hamy Avatar asked Feb 21 '26 08:02

Hamy


1 Answers

sshpass does this.

like image 196
ephemient Avatar answered Feb 23 '26 21:02

ephemient



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!