Hoffman2:Accessing the Cluster: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
 
(13 intermediate revisions by 3 users not shown)
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===
===Mac/Linux/Unix===
Line 13: Line 13:




====GUI-Enabled SSH [Recommended]====
====GUI-Enabled SSH====
Macs (post - Snow Leopard 10.6.x) no longer come with a X Window System Server pre-installed.
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.'''
For more information about XQuartz, read [http://support.apple.com/kb/ht5293 here].
Note: From Xquartz 2.7.9, indirect GLX is disabled by default, so you'll need to run this command followed by a reboot
***WARNING*** MacOSX10 Yosemite needs to add "export Display=:0.0" to the local user Profile in order for it to work.
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
# Open up X11/XQuartz or Terminal.  Both are under ''Applications > Utilities'' on Macs.
 
'''For M-series Macs use the following instead with XQuartz 2.8.2:'''
 
defaults write org.xquartz.X11 enable_iglx -bool true
 
 
# Open up your Terminal.  It's under ''Applications > Utilities'' on Macs.
# Type the command
# Type the command
#: <pre>$ ssh -Y [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>-Y</code> is for X11 Forwarding so that any graphics that are rendered on Hoffman2 get forwarded to the screen of your computer.
#: 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.
Line 28: Line 34:


===Windows===
===Windows===
# Go [http://www.hoffman2.idre.ucla.edu/access/login/ here] and follow the instructions under ''Windows''.  We recommend [http://www.hoffman2.idre.ucla.edu/access/putty/ 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 [ xming http://sourceforge.net/projects/xming/ ] for GUI access.
#: 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


==X2go - GUI==
x2Go provides a desktop like GUI for accessing Hoffman
Please see this setup page to find out the setup details


==NX Client - GUI==
==Remote Desktop [Recommended]==
Currently, Hoffman supports connecting to the cluster via the '''X2Go''' client and the '''NoMachine''' client.
 
===NX Client - GUI===
<!-- TODO: FIX NXClient Instructions -->
<!-- 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. -->


Please see the [http://www.hoffman2.idre.ucla.edu/access/nx/ 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.


<!--
<!--
Line 90: Line 98:


==External Links==
==External Links==
*[http://www.hoffman2.idre.ucla.edu/access/ Hoffman2 Access]
*[https://www.hoffman2.idre.ucla.edu/Using-H2/Connecting/Connecting.html Hoffman2 Access]
*[[Hoffman2:Accessing_the_Cluster-Historical_Notes | Historical Notes]]
*[[Hoffman2:Accessing_the_Cluster-Historical_Notes | Historical Notes]]

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