setting pem file ssh aws ec2 java code example Example: connect to amazon aws linux $ mssh i-001234a4bf70dec41EXAMPLE