Hi guys, I hope you all are doing well & staying safe & healthy during these times. I have ran into an issue trying to set up my stake pool. When I try to connect to aws from terminal, it states no such file or directory for my key pair. Do you all know what the issue might be? I’ve followed the instructional videos on the stake pool course & even retried from start multiple times just to troubleshoot with no luck. Any help would be greatly appreciated.
Reference: first video of lesson one - 12:04 mark on stake pool course. Using iterm2 with aws
When using the ssh command, do you use the -i flag to let the ssh program know where your private key is located?
It should look something like this if you’re using a .pem key
ssh -i /path/to/directory/that/contains/your/key/name/<your key name>.pem <ec2 user name>@<specific external IP and amazon datacenter you’re trying to connect to>.amazonaws.com
An example, if key.pem is located in /home/<user>/cardano, then just type
ssh -i ~/cardano/<your key name>.pem <ec2 user name>@<specific external IP and amazon datacenter you’re trying to connect to>.amazonaws.com
This is the shorter version of command, or the slightly lengthier version of the command
ssh -i /home/<user>/cardano/<your key name>.pem <ec2 user name>@<specific external IP and amazon datacenter you’re trying to connect to>.amazonaws.com
The shortest way to connect is just use the external IP of your virtual machine…let’s say it’s y.y.y.y, then you would type ssh -i /home/<user>/…/<foldername containing .pem key>/<key name>.pem <ec2 user name>@y.y.y.y
Or, if the key were located in /home/<user>/cardano, you would type
ssh -i ~/cardano/<key name>.pem <ec2 user name>@y.y.y.y
In addition, if the key name is key, and ec2 user name is ec2-user, then
ssh -i ~/cardano/key.pem ec2-user@y.y.y.y
Thank you! Let me give that a try