Header left.png

Difference between revisions of "Unix and Linux Services"

From Systems Group
Jump to: navigation, search
(Linux Servers)
Line 1: Line 1:
 
== Student and Faculty Use Servers ==
 
== Student and Faculty Use Servers ==
 +
The CS Department provides a Linux server for use by CS students and staff. Please read the following to learn how to connect to it.
  
The CS Department provides both Linux servers for use by CS students. To learn how to connect to these servers, please visit the [[SSH Access]] page.
+
====You must be connected to the CS VPN to connect!====  
====You must be connected to the CS VPN ([[VPN Services]]) to connect!====
+
  
 +
The address for the Linux server is kept internal to the CS network, so you must connect to our VPN before attempting to connect via ssh.<br>
 +
Instructions for connecting to the CS VPN can be found at ([[VPN Services]])
 +
 +
To learn how to connect to this server by ssh, please visit the [[SSH Access]] page.
 
=== Linux Servers ===
 
=== Linux Servers ===
  
'''linux.cs.odu.edu''' may be used to connect to our services.
+
'''linux.cs.odu.edu''' may be used to connect to our services. <br> <!-- changed back to linux.cs.odu.edu -->
 
+
The following old records used in previous deployments of our cluster of linux servers will also forward you to linux.cs.odu.edu:
+
 
+
(if your ssh client returns an error while doing so, refer to 'Host Key Checking Failed' below)
+
 
+
'''atria.cs.odu.edu'''
+
 
+
'''sirius.cs.odu.edu'''
+
 
+
'''canis.cs.odu.edu'''
+
 
+
'''betelgeuse.cs.odu.edu'''
+
  
'''aspidiske.cs.odu.edu'''
+
If you want to connect to a specific public linux server, you may connect to it directly. Their hostnames are listed below:
 +
sol.cs.odu.edu
  
'''scorpii.cs.odu.edu'''
 
  
== Common Questions or Issues ==
+
== Common Questions or Issues == <!--Verified most of the below statements, made no changes -->
 
=== Host Key Checking Failed ===
 
=== Host Key Checking Failed ===
 
==== Problem ====
 
==== Problem ====
Line 39: Line 31:
 
<code>ssh-keygen -R <hostname></code>  
 
<code>ssh-keygen -R <hostname></code>  
  
Replacing <hostname> with the the host for which you received the error, for example <code>linux.cs.odu.edu</code> and then reconnect. You may verify the given ECDSA fingerprint by comparing it to:
+
Replacing <hostname> with the the host for which you received the error, for example <code>sol.cs.odu.edu</code> and then reconnect. You may verify the given ECDSA fingerprint by comparing it to:
  
 
<code>SHA256:Q2Y/JHxDJbvNITVsGpUITCZCn6zIpGXkj2v9fNa2gE4</code>
 
<code>SHA256:Q2Y/JHxDJbvNITVsGpUITCZCn6zIpGXkj2v9fNa2gE4</code>
Line 50: Line 42:
 
== Home Directory ==
 
== Home Directory ==
  
When you log in to your Unix account, you are placed in your "Unix home directory". This will be the main working directory every time you log in. You can create and keep sub-directories,files and other important data in this directory.
+
When you log in to your Unix account, you are placed in your "home directory" (/home/$USER). This will be the main working directory every time you log in.  
  
Your home directory is backed up so it is advised to keep your data here. What is more, your Unix home directory gets mapped as your [[Windows Z Drive|Windows Z-Drive]] so that you can share data between operating systems. Your Z-Drive can also be mapped to Apple Mac machines. To learn how you can do this, visit the [[Z-Drive Mac]] page.
+
Your home directory is backed up so it is advised to keep your data here. What is more, your home directory is available as your [[Windows Z Drive|Windows Z-Drive]], when connected to the CS network.  
 +
<!-- The Windows Z drive page probably needs to be updated, as well. The instructions don't seem to work -->
  
 
<!-- To understand more about your Unix home directory, please visit the [[Unix Home Directory Explained]] page. -->
 
<!-- To understand more about your Unix home directory, please visit the [[Unix Home Directory Explained]] page. -->

Revision as of 21:47, 7 January 2022

Student and Faculty Use Servers

The CS Department provides a Linux server for use by CS students and staff. Please read the following to learn how to connect to it.

You must be connected to the CS VPN to connect!

The address for the Linux server is kept internal to the CS network, so you must connect to our VPN before attempting to connect via ssh.
Instructions for connecting to the CS VPN can be found at (VPN Services)

To learn how to connect to this server by ssh, please visit the SSH Access page.

Linux Servers

linux.cs.odu.edu may be used to connect to our services.

If you want to connect to a specific public linux server, you may connect to it directly. Their hostnames are listed below: sol.cs.odu.edu


Common Questions or Issues

Host Key Checking Failed

Problem

When our linux services recently migrated to a cluster of servers, the host keys associated with them changed. As a result, students who previously used ssh may receive one of the below error messages in their client since the migration:

In most linux environment using OpenSSH: 'Warning: Possible DNS Spoofing Detected!'

Using PuTTY on Windows: a popup saying 'Warning - Potential Security Breach!'

This is because your client is expecting the previous host key and not the new one. When this mis-match occurs, most ssh-clients by default refuse to complete the connection without intervention for security reasons.

Solution

If you are on linux using OpenSSH, the simplest solution is to remove the old host key: ssh-keygen -R <hostname>

Replacing <hostname> with the the host for which you received the error, for example sol.cs.odu.edu and then reconnect. You may verify the given ECDSA fingerprint by comparing it to:

SHA256:Q2Y/JHxDJbvNITVsGpUITCZCn6zIpGXkj2v9fNa2gE4

If you are using PuTTY, simply click the yes button on the popup to update the cache of host keys and complete the connection. You may verify the given ssh-ed25519 fingerprint by comparing it to:

The server's ssh-ed25519 key fingerprint is: ssh-ed25519 255 c6:2f:cb:83:fc:b2:cf:4d:43:aa:1b:dc:43:23:80:fe

Home Directory

When you log in to your Unix account, you are placed in your "home directory" (/home/$USER). This will be the main working directory every time you log in.

Your home directory is backed up so it is advised to keep your data here. What is more, your home directory is available as your Windows Z-Drive, when connected to the CS network.


Unix Permissions

Your security is important to us, and it should be very important to you. When you create files in your Unix home directory, you should be aware of the permissions you can set on these files. These permissions will determine whether or not your information can be viewed by other students in the department.

To understand how you can correctly set Unix permissions, please view the Unix Permissions page.

SFTP Services

All files in your home directory can be access via an SFTP connection. To learn more, visit the SFTP Services page.