To start with, I apologize if this is a painfully obvious/trivial issue, I'm still learning the ins and outs of linux/unix.
I work with a few servers that require access via ssh and private key to log into. So, the command is something like this:
ssh -i /path/to/key.pem email@example.com
I've created a bash script that let's me just use my own call,
access, and just has a basic switch statement for the arguments that follow to control which server I log into. For example,
access server1 would issue the appropriate
ssh command to log into server1.
ssh call just hangs up and I'm left with an empty terminal that won't accept
SIGINT (Ctrl + C) and I must quit the terminal and open it up again to even use it.
As far as I can tell, this might be a permissions thing for the private key. Its permissions are currently
600. Changing it to
644 gives me an error that the permissions are too open and exits the
ssh attempt. Any advice?