Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleOther Windows ssh/Terminal options

If your Windows version does not have ssh in Command Prompt or PowerShell:

More advanced options for those who want a full Linux environment on their Windows system:

...

ssh is an executable program that runs on your local computer and allows you to connect securely to a remote computer. We're going to use ssh to access the Lonestar6 compute cluster at TACC (Texas Advanced Computing Center), where the remote host name is ls6.tacc.utexas.edu.

In your local Terminal window:

Code Block
languagebash
titleSSH to Lonestar6 at TACC
ssh <your_TACC_userID>@ls6.tacc.utexas.edu

# For example:
ssh abattenh@ls6.tacc.utexas.edu
  • Answer yes to the SSH security question prompt
    • this will only be asked the 1st time you access ls6
  • Enter the password associated with your TACC account
    • for security reasons, your password characters will not be echoed to the screen
  • Get Wait for your 2-factor authentication code to arrive via SMS or from your phone's TACC Token app, then and type it in
Expand
titleLoggin in with PuTTY

If you're using PuTTY as your Terminal from Windows:

  • Double-click the Putty icon
  • In the PuTTY Configuration window
    • make sure the Connection type is SSH
    • enter ls6.tacc.utexas.edu for Host Name
      • Optional: to save this configuration for further use:
        • Enter Lonestar6 into the Saved Sessions text box, then click Save
        • Next time select Lonestar6 from the Saved Sessions list and click Load.
    • click Open button
    • answer Yes to the SSH security question
  • In the PuTTY terminal
    • enter your TACC user id after the "login as:" prompt, then Enter
    • enter the password associated with your TACC account
    • provide your 2-factor authentication code

...

You're now at a command line! It looks as if you're running directly on the remote computer, but really there are two programs communicating:

  1. your local Terminal
  2. the remote Shell

There are many shell programs available in Linux, but the default is bash (Bourne-again shell).

The Terminal is pretty "dumb" – just sending what you type over its secure sockets layer (SSL) connection to TACC, then displaying the text sent back by the shell. The real work is being done on the remote computer, by programs (commands) called by the bash shell.

Image Removedimage-2023-4-26_9-27-6.pngImage Added

Tip

The bash command-line environment is extremely powerful, but also complex and unforgiving – a one-character mistake can make all the difference between a command that works and one that doesn't!

In spite of the hurdles, learning to get around the Linux command line will pay substantial dividends. A good place to start is with our Linux fundamentals wiki page.

...

Code Block
languagebash
titleCreate symbolic directory links
cd  # makes your Home directory the "current directory"
ln -s -f $SCRATCH scratch
ln -s -f $WORK work
ln -s -f /work/projects/BioITeam/projects/courses/Core_NGS_Tools CoreNGS

ls # you'll see the 3 symbolic links you just created

Symbolic links (a.k.a. symlinks) are "pointers" to files or directories elsewhere in the file system hierarchy. You can almost always treat a symlink as if it is the actual file or directory.

Tip

$WORK and $SCRATCH are TACC environment variables that refer to your Work and Scratch file system areas (more on these file system areas soon).

Environment variables . They are like variables in other programming languages, in that : they have a name (WORK, SCRATCH) and hold a value ($WORK, $SCRATCH)

To see the value of an environment variable, use the echo command:, then the variable name after a dollar sign ( $ )

Code Block
languagebash
echo $SCRATCH


...

Expand
titleWhat is "ln -s" doing?

The ln -s command creates a symbolic link, a shortcut to the linked file or directory.

  • Here the link targets are your Work and Scratch file system areas
  • Having these link shortcuts will help when you want to copy files to your Work or Scratch, and when you navigate the TACC file system using a remote SFTP client
  • Always change directory (cd) to the directory where we want the links created before executing ln -s
    • Here we want the links under your home directory (cd with no arguments)

Want to know where a link points to? Use ls with the -l (long listing) option.

Code Block
languagebash
titlels -l shows where links go
ls -l


...

Now execute the lines below to set up a login script, called ~/.bashrc

When you login via an interactive shell, a well-known script is executed to establish your favorite environment settings. We've set up a common login script for you to start with that will help you know where you are in the file system and make it easier to access some of our shared resources. To set it up, perform the steps below:

...

Expand
titleWhat is chmod doing?

What's going on with chmod?

  • The chmod 600 .bashrc command marks the file as readable and writable only by you.
    The .bashrc script file will not be executed unless it has these exact permissions settings.
  • The well-known filename is ~/.bashrc (or ~/.profile on some systems), which is specific to the bash shell.

Since your ~/.bashrc is executed when you login, to ensure it is set up properly you should first log off ls6 like this:

...

Then log back in to ls6.tacc.utexas.edu. This time your ~/.bashrc will be executed and you should see a new shell prompt:

...