
Is there a way to keep my session open after running the shell file or am I using the -m option wrongly? Here is a link to a PuTTY guide that I have been following. When I try to add this option to the command-line using the -m option, it looks like PuTTY logs into the host and then immediately exits. I've also created a shell file that looks like so: #!/bin/bash Thanks!Įdit: I played around with the command-line options for Putty and I was able to bypass steps 1-2 using: putty -load "host" -l username -pw password Ignoring the obvious security oversights of having my password in the script, how would I achieve this? I have zero experience with scripting, so your feedback is greatly appreciated. I will be logging into this host a lot over the course of this semester and I was hoping to create a script that would eliminate the redundancy of the above steps.

Upon logging in, we are required to do these steps:

I'm using PuTTY to remotely log onto my school's host.
