Hoffman2:Accessing the Cluster: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
mNo edit summary
 
(32 intermediate revisions by 7 users not shown)
Line 4: Line 4:


==SSH - Command Line==
==SSH - Command Line==
: ''The official description of how to do this is found [http://www.ats.ucla.edu/clusters/common/head_node_access/access.htm here]''
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.


===If you are on a Mac/Linux/Unix...===
 
Modern Macs (anything with Operating systems newer than Snow Leopard 10.6.x) no longer come with a X Window System Server pre-installed.
====GUI-Enabled SSH====
Macs (post - Snow Leopard 10.6.x) no longer come with an 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.'''
Note: From Xquartz 2.7.9, indirect GLX is disabled by default, so you'll need to run this command followed by a reboot
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
'''For M-series Macs use the following instead with XQuartz 2.8.2:'''
defaults write org.xquartz.X11 enable_iglx -bool true


For more information about XQuartz, read [http://support.apple.com/kb/ht5293 here].
# Open up your Terminal.  It's under ''Applications > Utilities'' on Macs.
# Open up X11/XQuartz or Terminal.  Both are under ''Applications > Utilities'' on Macs.
# Type the command
# Type the command
#: <pre>$ ssh -X [USERNAME]@hoffman2.idre.ucla.edu</pre>
#: <pre>$ ssh -Y login_id@hoffman2.idre.ucla.edu</pre>
#: filling in your Hoffman2 username.
#: replacing login_id with 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.  A <code>-Y</code> flag accomplishes the same thing but does not secure the connection. Correct us if we have that switched.
#: The <code>-Y</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 SSHd into a login node.
# Provided your typing was good, you will be greeted by the Hoffman2 login message and have successfully SSH into a login node.
WARNING: Please note that in OSX 10.8 (Mountain Lion), Xorg is no longer support by Apple. Instead, use [http://xquartz.macosforge.org/landing/ XQuarts]


===If you are on Windows...===
===Windows===
# Go [http://hpc.ucla.edu/hoffman2/access/access.php here] and follow the instructions under ''Windows''.  We recommend PuTTY or Cgywin.
# Go [https://www.hoffman2.idre.ucla.edu/Using-H2/Connecting/Connecting.html here] and follow the instructions under ''Windows''.  We recommend PuTTY or Cgywin.
#: If you use putty, please install [http://sourceforge.net/projects/xming/ xming] for GUI access.
# 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




==NX Client - GUI==
==Remote Desktop [Recommended]==
: ''The official description of how to do this is found [http://hpc.ucla.edu/hoffman2/access/nx.php here]''
Currently, Hoffman supports connecting to the cluster via the '''X2Go''' client and the '''NoMachine''' client.
 
===NX Client - GUI===
<!-- TODO: FIX NXClient Instructions -->
 
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).
<!-- Please see the [https://www.hoffman2.idre.ucla.edu/access/#Connecting_via_the_NX_protocol Hoffman2 NX Client documentation] for more information. -->
===X2Go - GUI===
X2Go provides a desktop-like GUI for accessing the Hoffman server. Please see [https://www.ccn.ucla.edu/wiki/index.php/X2go here] to find out more about setup details.


<!--


===PCs or Mac OS X 10.6 and earlier===
===Mac OS X 10.7+ / Windows / Linux===
# Go to the [http://www.nomachine.com/ No Machine website] and navigate to the ''Download'' tab.
==== What You Need====
# Find the section titled ''NX Client Products'' and click on the one for the operating system you are running.
# Go to the No Machine website ([https://www.nomachine.com/download No Machine]) and download/install the No Machine for Mac OS X/Windows/Linux.
# Download the appropriate installation file and install it on your computer.
# Hoffman2 NX Client Public Key
# Once it is installed on your computer, start up NX Client.
#* To get the NX Client Public Key, follow the steps below or email support@ccn.ucla.edu
# The window that appears will ask for:
#** (OSX/Linux) Open up a Terminal and run the following command (replacing USERNAME with your Hoffman2 username)
#*Login -- your Hoffman2 username
#**:<code>$ scp USERNAME@hoffman2.idre.ucla.edu:/etc/nxserver/client.id_dsa.key ~/Documents/</code>
#*Password -- your Hoffman2 password
#** (Windows) Use a sftp program and download the file /etc/nxserver/client.id_dsa.key on Hoffman2 (hoffman2.idre.ucla.edu)
#*Session -- type ''Hoffman2''
# Then click the ''Configure...'' button and fill out the necessary information
#*Under the ''General'' tab
#**In the ''Server'' section
#***Host -- ''hoffman2.idre.ucla.edu''
#***Port -- 22
#***Key -- Click this button and delete the contents of the window that appears.  Open up an [[Accessing Hoffman2#SSH_-_Command_Line|SSH session]] to Hoffman2 and run the command
#***:<pre>$ cat /etc/nxserver/client.id_dsa.key</pre>
#***:The output is the key. Copy everything that was printed out and paste it into the Key window in NX Client and click ''Save''.
#**In the ''Desktop'' section -- Use the drop down menus to select ''Unix'' and ''GNOME''
#*Click ''Save''
# Now you can click ''Login'' on the main window and a GUI environment connection will be established with a Hoffman2 login node.




===Mac OS X 10.7 and newer===
====Setup====
#: Go to the ''Download Preview'' section of the No Machine website ([http://www.nomachine.com/download-preview.php]).''' and download the NX Client 4 preview.
# Open up No Machine in Application/Desktop and Click Continue.
# Open the DMG that you downloaded, copy "No Machine Player.app" into your "Applications" directory and open it up for the first time.
# A window titled "New Connection" will appear.  Fill out the fields accordingly
# 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"
#* Host -- "hoffman2.idre.ucla.edu" since this is the server you are connecting to
 
#* Port -- 22
#* Select "Use the NoMachine login" and click the button on the right labeled with "..."
#** In the new window labeled "NoMachine login" check the box next to "Use an alternate server key"
#** Open up a Terminal and run the following command (replacing USERNAME with your Hoffman2 username)
#**:<code>$ scp USERNAME@login2.hoffman2.idre.ucla.edu:/etc/nxserver/client.id_dsa.key ~/Documents/</code>
#**and enter your Hoffman2 password when prompted.
#** Back in NoMachine, click on the button labeled "..." and find the file you just downloaded (it is in your Documents folder labeled "client.id_dsa.key").
#** Click on the X in the top right corner to return to the previous window.
#* Click on the X in the top right corner to finish setting up the connection parameters.
# 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).
# A circular progress indicator will show up for a bit before giving way to an authentication screen asking for username and password.
# 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)
# A circular progress indicator will show up again until a menu appears.  Select "Create a new session".
# Select "Create a new session". or "New Virtual Desktop"
# In the next menu, '''select GNOME'''.
# In the next menu, select Create new '''GNOME''' virtual desktop.
# After another circular progress indicator, a virtual desktop should appear.
# 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]
 


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.


==UCLA Grid Portal==
For more Information [[http://hpc.ucla.edu/hoffman2/access/nx.php Hoffman2 NX Client]] -->
: ''The official description of how to do this is found [http://www.ats.ucla.edu/clusters/grid_portal/ here]''


We haven't used this one much yet, but we'll be trying it out and get back to you about our experiences.
<!-- If you are unable to open Firefox ("Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."), deleting ~/.mozilla might fix the problem. ''Be warned:'' this will erase your profile, including bookmarks, history, saved passwords, etc! For instructions on backing up and restoring profile information, see [https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles Mozilla Support]. Make sure to perform these actions within No Machine, and not on your local system. -->


== 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://www.ats.ucla.edu/clusters/common/head_node_access/access.htm Accessing Hoffman2 via Command Line]
*[https://www.hoffman2.idre.ucla.edu/Using-H2/Connecting/Connecting.html Hoffman2 Access]
*[http://hpc.ucla.edu/hoffman2/access/nx.php Accessing Hoffman2 via NX Client]
*[[Hoffman2:Accessing_the_Cluster-Historical_Notes | Historical Notes]]
*[http://www.ats.ucla.edu/clusters/hoffman2/head_node_access/ Information about Hoffman2 Login Nodes] -- RSA Fingerprints, node addresses
*[http://www.ats.ucla.edu/clusters/grid_portal/ Accessing Hoffman2 through UCLA Grid Portal]

Latest revision as of 18:24, 19 August 2022

Back to all things Hoffman2

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

Macs (post - Snow Leopard 10.6.x) no longer come with an X Window System Server pre-installed.

Before doing the following steps, please install XQuartz and restart your computer. Note: From Xquartz 2.7.9, indirect GLX is disabled by default, so you'll need to run this command followed by a reboot

defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

For M-series Macs use the following instead with XQuartz 2.8.2:

defaults write org.xquartz.X11 enable_iglx -bool true


  1. Open up your Terminal. It's under Applications > Utilities on Macs.
  2. Type the command
    $ ssh -Y login_id@hoffman2.idre.ucla.edu
    replacing login_id with your Hoffman2 username.
    The -Y is for X11 Forwarding so that any graphics that are rendered on Hoffman2 get forwarded to the screen of your computer.
  3. Press enter and type in your password when it asks for it. No characters or asterisks will show up while you type.
  4. Provided your typing was good, you will be greeted by the Hoffman2 login message and have successfully SSH into a login node.

Windows

  1. Go here and follow the instructions under Windows. We recommend PuTTY or Cgywin.
    If you use putty, please install xming for GUI access.
  2. Once you have that setup, the process is the same as if you were on a Mac or Linux/Unix machine


Remote Desktop [Recommended]

Currently, Hoffman supports connecting to the cluster via the X2Go client and the NoMachine client.

NX Client - GUI

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).

X2Go - GUI

X2Go provides a desktop-like GUI for accessing the Hoffman server. Please see here to find out more about setup details.


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