Difference between revisions of "SSH"

Line 1: Line 1:
SSH ('''S'''ecure '''SH'''ell) is a command line based application for connecting remotely to linux machines at CAEDM. It offers a secure connection (as suggested by the name) so it is optimal for applications like copying important documents and transmitting important data.
+
SSH ('''S'''ecure '''SH'''ell) is a command line application for connecting remotely to linux machines at CAEDM. It offers a secure connection (as suggested by the name) so it is optimal for applications like copying important documents and transmitting important data.
  
 
==Connecting and Logging In==
 
==Connecting and Logging In==
Line 8: Line 8:
 
Connecting to an SSH server is a different process for different platforms.
 
Connecting to an SSH server is a different process for different platforms.
 
===Windows===
 
===Windows===
You need to acquire the free application "putty" from the [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html| website]. From their, create a new connection to the server indicated above, enter your CAEDM username and password, and you should be provided with a [[bash| shell]].
+
You need to acquire the free application "putty" from the [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html| website]. From there, create a new connection to the server indicated above, enter your CAEDM username and password, and you should be provided with a [[bash| shell]].
 
===Macintosh and Linux===
 
===Macintosh and Linux===
With both Macintosh and Linux, just open a terminal. Connect with the 'ssh' command, used as follow:
+
With both Macintosh and Linux, open a terminal. Connect with the 'ssh' command, used as follow:
 
  username@ssh.et.byu.edu
 
  username@ssh.et.byu.edu
 
It will prompt you to add the server as 'trusted'. Type 'yes' and hit enter. It should provide you with a [[bash| shell]].
 
It will prompt you to add the server as 'trusted'. Type 'yes' and hit enter. It should provide you with a [[bash| shell]].
  
 
==The Shell==
 
==The Shell==
Once you have established a connection, you should have a command prompt. You are now logged into a CAEDM machine, and your working directory should be your J drive. From here, you have access to all your files. To retrieve those files, the procedure (platform specific) is as follows:
+
Once you have established a connection, you should have a command prompt. You are now logged into a CAEDM machine, and your working directory should be your J drive, or homespace. From here, you have access to all your files. To retrieve those files, the procedure (platform specific) is as follows:
 
===Windows===
 
===Windows===
 
Download WinSCP and use that. A more detailed explanation is [[J Drive#Accessing the J Drive from On Campus| here]].
 
Download WinSCP and use that. A more detailed explanation is [[J Drive#Accessing the J Drive from On Campus| here]].

Revision as of 11:38, 14 March 2012

SSH (Secure SHell) is a command line application for connecting remotely to linux machines at CAEDM. It offers a secure connection (as suggested by the name) so it is optimal for applications like copying important documents and transmitting important data.

Connecting and Logging In

Logging in with SSH is just like logging in to a workstation at CAEDM. All your files will be availibe as they are on the system, and you should be able to run any command line application availible on the system. The system to log into for SSH is:

ssh.et.byu.edu

This server is accessible everywhere, but note that many public wifi networks do not allow port 22 (the port used by SSH), and so will not connect.

Connecting to an SSH server is a different process for different platforms.

Windows

You need to acquire the free application "putty" from the website. From there, create a new connection to the server indicated above, enter your CAEDM username and password, and you should be provided with a shell.

Macintosh and Linux

With both Macintosh and Linux, open a terminal. Connect with the 'ssh' command, used as follow:

username@ssh.et.byu.edu

It will prompt you to add the server as 'trusted'. Type 'yes' and hit enter. It should provide you with a shell.

The Shell

Once you have established a connection, you should have a command prompt. You are now logged into a CAEDM machine, and your working directory should be your J drive, or homespace. From here, you have access to all your files. To retrieve those files, the procedure (platform specific) is as follows:

Windows

Download WinSCP and use that. A more detailed explanation is here.

Macintosh and Linux

Exit your ssh connection and open a terminal. Use the command 'scp' as follows:

scp username@scp.et.byu.edu:~/path/to/file path/to/target/directory/

Where path to file is the path to the file you wish to retrieve, and path to target directory is the path to the directory in which you wish to insert the file.

A more detailed explanation of the shell can be found here.