Logging into Development Environment
Table of Contents
Welcome. Your first goal is to log into specified machine.
You will be given
- A username, e.g.
YOUR_USER_NAME - A
.pemssh-key, e.g.fcai-YOUR_USER_NAME.pem - A hostname, e.g.
192.168.50.204
A. Using command-line
You are going to make your first manual attempt to connect, if anything is not working, please talk to us.
-
Make sure you have SSH installed in your local machine
SSH client should be pre-installed on MacOS and most Linux distro, for Windows, use WSL2 to install a Linux distro.
ssh -V #> OpenSSH_8.0p1, OpenSSL 1.1.1g FIPS 21 Apr 2020 # Any version should work -
Move ssh-key into
~/.sshand set permissionchmod 400 ~/.ssh/fcai-YOUR_USER_NAME.pem -
Attempt to login using command line
ssh -i ~/.ssh/fcai-YOUR_USER_NAME.pem YOUR_USER_NAME@192.168.50.204 #> The authenticity of host '[192.168.50.204] ([192.168.50.204])' can't be established. #> ECDSA key fingerprint is SHA256:..... #> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes #> Warning: Permanently added '[192.168.50.204]' (ECDSA) to the list of known hosts. #> Last login: Mon May 23 06:55:19 2022 from 192.168.xxx.xxx #> [YOUR_USER_NAME@node4 ~]$
B. Using SSH config file
You can create an alias for this set of ssh login configuration using ssh config file
-
Edit your
~/.ssh/configHost fcai4 HostName 192.168.50.204 IdentityFile ~/.ssh/fcai-YOUR_USER_NAME.pem User YOUR_USER_NAME -
Attempt to login using the alias
ssh fcai4 #> Last login: Mon May 23 06:55:19 2022 from 192.168.xxx.xxx #> [YOUR_USER_NAME@node4 ~]$