Hoffman2:Accessing the Cluster: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==SSH - Command Line== | ==SSH - Command Line== | ||
SSH stands for ''Secure Shell'' and is a method of remotely logging into a computer using an encrypted connection. It is a command line tool and is available on most *nix-based operating systems with ports available for Windows. | SSH stands for ''Secure Shell'' and is a method of remotely logging into a computer using an encrypted connection. It is a command line tool and is available on most *nix-based operating systems with ports available for Windows. | ||
=== | ===Mac/Linux/Unix=== | ||
====Simple SSH==== | |||
Use the ssh command from a terminal: | |||
ssh login_id@hoffman2.idre.ucla.edu | |||
where login_id is replaced by your cluster user name. | |||
====GUI-Enabled SSH [Recommended]==== | |||
Macs (post - Snow Leopard 10.6.x) no longer come with a X Window System Server pre-installed. | |||
'''Before doing the following steps, please install [http://xquartz.macosforge.org/ XQuartz] and restart your computer.''' | '''Before doing the following steps, please install [http://xquartz.macosforge.org/ XQuartz] and restart your computer.''' | ||
Line 18: | Line 24: | ||
#: <pre>$ ssh -X [USERNAME]@hoffman2.idre.ucla.edu</pre> | #: <pre>$ ssh -X [USERNAME]@hoffman2.idre.ucla.edu</pre> | ||
#: filling in your Hoffman2 username. | #: filling in your Hoffman2 username. | ||
#: The <code>-X</code> is for X11 Forwarding so that any graphics that are rendered on Hoffman2 get forwarded to the screen of your computer | #: The <code>-X</code> is for X11 Forwarding so that any graphics that are rendered on Hoffman2 get forwarded to the screen of your computer. | ||
# Press enter and type in your password when it asks for it. No characters or asterisks will show up while you type. | # Press enter and type in your password when it asks for it. No characters or asterisks will show up while you type. | ||
# Provided your typing was good, you will be greeted by the Hoffman2 login message and have successfully | # Provided your typing was good, you will be greeted by the Hoffman2 login message and have successfully SSH into a login node. | ||
=== | ===Windows=== | ||
# Go [http://hpc.ucla.edu/hoffman2/access/access.php here] and follow the instructions under ''Windows''. We recommend PuTTY or Cgywin. | # Go [http://hpc.ucla.edu/hoffman2/access/access.php here] and follow the instructions under ''Windows''. We recommend PuTTY or Cgywin. | ||
# Once you have that setup, the process is the same as if you were on a Mac or Linux/Unix machine | # Once you have that setup, the process is the same as if you were on a Mac or Linux/Unix machine | ||
# TODO: [More information Coming] | |||
Line 33: | Line 39: | ||
The NX Client program allows you to set up a Virtual Network Computing (VNC)-like session with Hoffman2. This session will keep running even if your Internet connection drops in and out (much like [[Using Screen|screen]] on the command line). | The NX Client program allows you to set up a Virtual Network Computing (VNC)-like session with Hoffman2. This session will keep running even if your Internet connection drops in and out (much like [[Using Screen|screen]] on the command line). | ||
===Mac OS X 10.7+ / Windows=== | |||
==== What You Need==== | |||
# Go to the No Machine website ([https://www.nomachine.com/download No Machine]) and download/install the No Machine for Mac OS X/Windows. | |||
# Hoffman2 NX Client Public Key | |||
#* To get the NX Client Public Key, follow the steps below or email support@ccn.ucla.edu | |||
#** (OSX) Open up a Terminal and run the following command (replacing USERNAME with your Hoffman2 username) | |||
#**:<code>$ scp USERNAME@hoffman2.idre.ucla.edu:/etc/nxserver/client.id_dsa.key ~/Documents/</code> | |||
#** (Windows) Use a sftp program and download the file /etc/nxserver/client.id_dsa.key on Hoffman2 (hoffman2.idre.ucla.edu) | |||
====Setup==== | |||
# Open up No Machine in Application/Desktop and Click Continue. | |||
# A window titled "New Connection" will appear. Fill out the fields accordingly | |||
#* Protocol -- SSH | |||
#* Host -- "hoffman2.idre.ucla.edu" | |||
#* Port -- 22 | |||
#* Select "Use the NoMachine login" | |||
# | #* Select Alternate Server Key and (...) - and find the file (client.id_dsa.key) you downloaded earlier (in your Documents folder). | ||
#* Don't use a proxy | |||
# | |||
#* Name -- Something like "Hoffman2" | #* Name -- Something like "Hoffman2" | ||
# Double click on the connection you just created (it should be the only one in the list). | # Double click on the connection you just created (it should be the only one in the list). | ||
# Enter your Hoffman2 username and password and click "OK" (You may also check the box labeled "Save this setting in the configuration file" to avoid retyping this in the future) | # Enter your Hoffman2 username and password and click "OK" (You may also check the box labeled "Save this setting in the configuration file" to avoid retyping this in the future) | ||
# | # Select "Create a new session". or "New Virtual Desktop" | ||
# In the next menu, ''' | # In the next menu, select Create new '''GNOME''' virtual desktop. | ||
# | # A virtual desktop should appear! | ||
Reconnections in this client are not currently supported for Hoffman2, so please make sure to logout and close your connections properly. [http://hpc.ucla.edu/hoffman2/access/nx.php#logout] | |||
====Troubleshooting==== | |||
===Troubleshooting=== | |||
If your NX Client session freezes and you are unable to close it properly, open ''NX Session Administrator'' and disconnect your session from there. This freezing often occurs when your Internet connection is lost abruptly. Another possible cause for freezing is scrolling on certain Windows touchpads. | If your NX Client session freezes and you are unable to close it properly, open ''NX Session Administrator'' and disconnect your session from there. This freezing often occurs when your Internet connection is lost abruptly. Another possible cause for freezing is scrolling on certain Windows touchpads. | ||
For more Information [[http://hpc.ucla.edu/hoffman2/access/nx.php Hoffman2 NX Client]] | |||
== Change Passwords == | == Change Passwords == | ||
To change passwords. | Once you've logged on and made sure its works, you can change your password to something more rememberable | ||
To change passwords, logon and type: | |||
passwd | |||
It should ask you for your old password and then new ones. | |||
==External Links== | ==External Links== | ||
*[http:// | *[http://hpc.ucla.edu/hoffman2/access/access.php Hoffman2 Access] | ||
*[http://hpc.ucla.edu/hoffman2/access/nx.php | *[http://hpc.ucla.edu/hoffman2/access/nx.php Hoffman2 via NX Client] | ||
*[ | *[[Hoffman2:Accessing_the_Cluster-Historical_Notes | Historical Notes]] | ||
Revision as of 00:08, 23 May 2014
Here are some of our favorite ways to access the Hoffman2 Cluster login nodes.
SSH - Command Line
SSH stands for Secure Shell and is a method of remotely logging into a computer using an encrypted connection. It is a command line tool and is available on most *nix-based operating systems with ports available for Windows.
Mac/Linux/Unix
Simple SSH
Use the ssh command from a terminal:
ssh login_id@hoffman2.idre.ucla.edu
where login_id is replaced by your cluster user name.
GUI-Enabled SSH [Recommended]
Macs (post - Snow Leopard 10.6.x) no longer come with a X Window System Server pre-installed.
Before doing the following steps, please install XQuartz and restart your computer.
For more information about XQuartz, read here.
- Open up X11/XQuartz or Terminal. Both are under Applications > Utilities on Macs.
- Type the command
$ ssh -X [USERNAME]@hoffman2.idre.ucla.edu
- filling in your Hoffman2 username.
- The
-X
is for X11 Forwarding so that any graphics that are rendered on Hoffman2 get forwarded to the screen of your computer.
- Press enter and type in your password when it asks for it. No characters or asterisks will show up while you type.
- Provided your typing was good, you will be greeted by the Hoffman2 login message and have successfully SSH into a login node.
Windows
- Go here and follow the instructions under Windows. We recommend PuTTY or Cgywin.
- Once you have that setup, the process is the same as if you were on a Mac or Linux/Unix machine
- TODO: [More information Coming]
NX Client - GUI
- The official description of how to do this is found here
The NX Client program allows you to set up a Virtual Network Computing (VNC)-like session with Hoffman2. This session will keep running even if your Internet connection drops in and out (much like screen on the command line).
Mac OS X 10.7+ / Windows
What You Need
- Go to the No Machine website (No Machine) and download/install the No Machine for Mac OS X/Windows.
- Hoffman2 NX Client Public Key
- To get the NX Client Public Key, follow the steps below or email support@ccn.ucla.edu
- (OSX) Open up a Terminal and run the following command (replacing USERNAME with your Hoffman2 username)
$ scp USERNAME@hoffman2.idre.ucla.edu:/etc/nxserver/client.id_dsa.key ~/Documents/
- (Windows) Use a sftp program and download the file /etc/nxserver/client.id_dsa.key on Hoffman2 (hoffman2.idre.ucla.edu)
- (OSX) Open up a Terminal and run the following command (replacing USERNAME with your Hoffman2 username)
- To get the NX Client Public Key, follow the steps below or email support@ccn.ucla.edu
Setup
- Open up No Machine in Application/Desktop and Click Continue.
- A window titled "New Connection" will appear. Fill out the fields accordingly
- Protocol -- SSH
- Host -- "hoffman2.idre.ucla.edu"
- Port -- 22
- Select "Use the NoMachine login"
- Select Alternate Server Key and (...) - and find the file (client.id_dsa.key) you downloaded earlier (in your Documents folder).
- Don't use a proxy
- Name -- Something like "Hoffman2"
- Double click on the connection you just created (it should be the only one in the list).
- Enter your Hoffman2 username and password and click "OK" (You may also check the box labeled "Save this setting in the configuration file" to avoid retyping this in the future)
- Select "Create a new session". or "New Virtual Desktop"
- In the next menu, select Create new GNOME virtual desktop.
- A virtual desktop should appear!
Reconnections in this client are not currently supported for Hoffman2, so please make sure to logout and close your connections properly. [1]
Troubleshooting
If your NX Client session freezes and you are unable to close it properly, open NX Session Administrator and disconnect your session from there. This freezing often occurs when your Internet connection is lost abruptly. Another possible cause for freezing is scrolling on certain Windows touchpads.
For more Information [Hoffman2 NX Client]
Change Passwords
Once you've logged on and made sure its works, you can change your password to something more rememberable To change passwords, logon and type:
passwd
It should ask you for your old password and then new ones.