...
Launch your terminal program (e.g., PowerShell) and type the following (not including the $ and replacing the “userid” with your username) command to log in to the CS server. You will need to replace the "userid" with your username.
$ ssh userid@cslogin.arc.rhodes.edu
...
$ ssh doej-21@cslogin.arc.rhodes.edu
Info |
---|
Note that the initial dollar sign and space |
You will be prompted for your password, which will be your regular Rhodes One Login password.
...
First off, start by creating an SSH keypair by entering the following command into a local PowerShell prompt.
Info |
---|
If you are still connected via ssh to |
$ ssh-keygen -t rsa -b 4096
...
PowerShell lacks the equivalent of the ssh-copy-id
utility that is installed by default with SSH on Linux and MacOS. As a workaround, you can execute the following two commands from your PowerShell terminal.
Replace “userid” with your username before executing!
...
$ $cmd = "mkdir
...
-p
...
~/.ssh;
...
cat
...
|
...
tr
...
-d
...
'\r'
...
>>
...
~/.ssh/authorized_keys"
...
Replace “userid” with your username before executing the following!
$ cat ~/.ssh/id_rsa.pub
...
|
...
ssh
...
userid@cslogin.arc.rhodes.edu
...
"$cmd"
Info |
---|
...
Note that ~ is a reference to your home directory. This shell expansion works in Linux/Unix shells (like BASH and zsh) and PowerShell. |
These commands are doing a lot! Here is a breakdown for the curious:
it reads the first command assigns a set of commands to be run later to the local PowerShell variable
$cmd
the second command:
uses
cat
to read your public key
, the local file
id_rsa.pub
opens an ssh connection to the remote server
cslogin
|
pipes the contents ofid_rsa.pub
through the ssh connection and sends the commands assigned to the$cmd
variable to be run on the remote server.mkdir
creates a new directory on the remote server called.ssh
(if it
doesn't already exist)
cat |
sends the piped stream of data fromid_rsa.pub
through thetr
command which translates the line termination characters from DOS-style (
"\r\
n") to Unix-style (
"\
n")
>>
appends the newly formatted public key into a remote file calledauthorized_keys
Note that ~ is a reference to your home directory. This shell expansion works in Linux/Unix shells (like BASH and zsh) and PowerShell.
Now, whenever you log in to cslogin
over SSH you will be prompted for your passphrase rather than your password.
...
Now, at this point you should be all done with the required configuration on your local host. You will still need to setup more SSH keys on cslogin
so that you can securely exchange files with GitHub.: