The Computer Science program at Texas Wesleyan University provides multiple servers for students and faculty to use for projects and coursework. The instructions on this page are primarily apply to the Linux servers running Redhat Enterprise. These new Linux servers are hosted on Amazon Cloud (AWS) and requires key-based login for secure accesss, rather than traditional password-based login.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAWb8FBr+mDZ+eddtraHFiZeH082Ie6isf16KQRAopFf
[jdoe@ip-172-31-84-83 ~]$ pwd /home/jdoe [jdoe@ip-172-31-84-83 ~]$ mkdir public_html [jdoe@ip-172-31-84-83 ~]$ cd public_html [jdoe@ip-172-31-84-83 public_html]$ nano index.html [jdoe@ip-172-31-84-83 public_html]$ ls index.htmlBelow is the website link for the user "jdoe" hosted on the new server:
https://cs1.txwes.edu/~jdoe/
ssh-keygen -t ed25519When prompted, you are asked to enter file in which to save the key. If you don't provide a file name and press return key, a default file name will be used: id_ed25519 for private key file and id_ed25519.pub for public key file, and they will be stored in a hidden directory called .ssh within your home directory (e.g., /Users/jdoe). Also, you will be prompted for a passphrase for your private key file. You can view the public key file using command "cat .ssh/id_ed25519.pub" within your current directory. Copy the public key and submit to the administrator of the server for uploading to the server. To login to the server from a Terminal window, just type the command below:
ssh jdoe@cs1.txwes.eduThen type your passphrase for your private key file. Below is a sequence of commands for this process.
jdoe@AdministorsAir2 ~ % ssh-keygen -t ed25519 Generating public/private ed25519 key pair. Enter file in which to save the key (/Users/jdoe/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/jdoe/.ssh/id_ed25519 Your public key has been saved in /Users/jdoe/.ssh/id_ed25519.pub jdoe@AdministorsAir2 ~ % cd .ssh jdoe@AdministorsAir2 .ssh % ls -l total 32 -rw------- 1 jdoe staff 484 Aug 20 23:50 id_ed25519 -rw-r--r-- 1 jdoe staff 117 Aug 20 23:50 id_ed25519.pub -rw------- 1 jdoe staff 1125 Jan 25 2024 known_hosts -rw------- 1 jdoe staff 941 Jan 25 2024 known_hosts.old
jdoe@AdministorsAir2 ~ % ssh-keygen -t ed25519 Generating public/private ed25519 key pair. Enter file in which to save the key (/Users/jdoe/.ssh/id_ed25519): mykey Enter passphrase (empty for no passphrase): Enter same passphrase again: jdoe@AdministorsAir2 ~ % ls Desktop Documents Pictures Downloads Public Library mykey Movies mykey.pubTo login to the server from a Terminal window, just type the command below:
ssh -i mykey jdoe@cs1.txwes.edu