Hprc banner tamu.png

Difference between revisions of "HPRC:Access:Linux"

From TAMU HPRC
Jump to: navigation, search
(Remote Access Using Linux/Unix)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Access from Linux/Unix ==
 +
[http://www.openssh.com/ OpenSSH] is an SSH v1.x and v2.x compliant SSH package that is available for many Linux and Unix operating systems and is " ...freely usable and re-usable by everyone under a BSD license... ". OpenSSH also includes secure copy (scp), which may be used instead of ftp. It is available from: [ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/].
  
[http://www.openssh.com/ OpenSSH] is an SSH v1.x and v2.x compliant SSH package that is available for many Linux and Unix operating systems and is " ...freely usable and re-usable by everyone under a BSD license... ". OpenSSH also includes secure copy (scp), which may be used instead of ftp. It is available from:
+
=== Using the Terminal ===
  
[ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/].
+
If you are using a UNIX based system (IRIX, Linux, SunOS, etc), open a terminal window and connect to the cluster using [[HPRC:SSH_Access | SSH]].
  
== Remote Logins ==
+
=== Remote Display of Programs with Graphical Interfaces ===
  
If you are using a UNIX based system (IRIX, Linux, SunOS, etc) you will typically need to type the following command from a shell terminal:
+
Typically, if you use a graphical login screen to login a Linux or Unix system, then the system is already running a X11 server. You will need to login with SSH to the cluster in a slightly different manner:
  
<pre>ssh yourusername@eos.tamu.edu</pre>
+
<pre>ssh -X NetID@ada.tamu.edu</pre>
where ''yourusername'' is your account username for the system, <code>eos.tamu.edu</code> in this example. You will then be prompted for your Hydra cluster account password in order to establish the connection.
 
 
 
If, however, you are connecting for the very first time, you will see a message similar to the following, before arriving at the password prompt:
 
 
 
<pre>The authenticity of host 'eos (165.91.16.22)' can't be established.
 
RSA key fingerprint is f0:3e:2d:95:1b:56:b8:cb:6c:a5:92:1b:cd:1b:bf:92.
 
Are you sure you want to continue connecting (yes/no)?</pre>
 
Type '''yes''' and you will then be presented with the password prompt.
 
 
 
<pre>Warning: Permanently added 'eos.tamu.edu,165.91.16.22'
 
(RSA) to the list of known hosts.
 
yourusername@eos.tamu.edu's password:</pre>
 
== File Transfers ==
 
 
 
Use SCP to copy files from one machine to another. SCP replaces rcp and should be used instead of ftp. It also has more flexibility than ftp and can be used to copy directories instead of just files. The general form of SCP is:
 
 
 
<pre>scp [[user@]host1:]filename1 [[user@]host2:]filename2 </pre>
 
Where <code>filename1</code> and <code>filename2</code> can be file or directory names. If your user name is the same on both the local and remote machines, then you do not have to provide the <code>user@</code>. If you are copying from your local machine, you do not have to provide the name of host1. For example, to copy a file called temp.ps from a local machine to <code>eos.tamu.edu</code>, use the following command:
 
 
 
<pre>scp temp.ps eos.tamu.edu:temp.ps </pre>
 
The file <code>temp.ps</code> will be copied to your home directory on Hydra cluster. If you have a different user name on Hydra cluster, then specify it as shown below.
 
 
 
<pre>scp temp.ps remote-user-name@eos.tamu.edu:temp.ps </pre>
 
== Remote Display of Programs with Graphical Interfaces ==
 
 
 
Typically, if you use a graphical login screen to login a Linux or Unix system, then the system is already running a X11 server. You will need to login with SSH to the remote system in a slightly different manner:
 
 
 
<pre>ssh -X yourusername@eos.tamu.edu</pre>
 
 
The <code>-X</code> option tells SSH to allow programs to forward and display their graphical interfaces. This is known as X11 forwarding. To verify that X11 forwarding is working, type the following command:
 
The <code>-X</code> option tells SSH to allow programs to forward and display their graphical interfaces. This is known as X11 forwarding. To verify that X11 forwarding is working, type the following command:
  
 
<pre>xterm</pre>
 
<pre>xterm</pre>
 
If a new xterm terminal window for the remote system pops up, then X11 forwarding is working correctly.
 
If a new xterm terminal window for the remote system pops up, then X11 forwarding is working correctly.
 +
 +
[[ Category: HPRC ]]

Latest revision as of 15:43, 7 April 2017

Access from Linux/Unix

OpenSSH is an SSH v1.x and v2.x compliant SSH package that is available for many Linux and Unix operating systems and is " ...freely usable and re-usable by everyone under a BSD license... ". OpenSSH also includes secure copy (scp), which may be used instead of ftp. It is available from: ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/.

Using the Terminal

If you are using a UNIX based system (IRIX, Linux, SunOS, etc), open a terminal window and connect to the cluster using SSH.

Remote Display of Programs with Graphical Interfaces

Typically, if you use a graphical login screen to login a Linux or Unix system, then the system is already running a X11 server. You will need to login with SSH to the cluster in a slightly different manner:

ssh -X NetID@ada.tamu.edu

The -X option tells SSH to allow programs to forward and display their graphical interfaces. This is known as X11 forwarding. To verify that X11 forwarding is working, type the following command:

xterm

If a new xterm terminal window for the remote system pops up, then X11 forwarding is working correctly.