Versions Compared

Key

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

Table of Contents

...

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:

From now on, when we refer to "Terminal", it is either the Mac/Linux Terminal program, Windows Command Prompt or PowerShell, or the PuTTY program.

...

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

# For example:
ssh .tacc.utexas.edu

# For example:
ssh abattenh@ls6.tacc.utexas.edu

# If you get an error "Corrupted MAC on input", login as shown below
#   instead, adding the -m hmac-sha2-512 option. 
# This may be needed because TACC very recently updated their 
#   security ciphers, causing the error
ssh -m hmac-sha2-512 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 your 2-factor authentication code from your phone's MFA app (usually DUO), and type it in
Expand
titleLogging 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

...

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 -sf /work/projects/BioITeam/projects/courses/Core_NGS_Tools CoreNGS

ls    # you'll see the 3 symbolic links you just created
ls -l # and this shows where the links point to

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.

...

And Tab completion works on program names too:

Code Block
languagebash
cd
laun  # hit Tab once after typing "laun"
      # This will expand to launcher_creator.py

...

Expand
titleShowing PATH directories

Here's a little command line trick to list the directories on your $PATH on separate lines, using the sed (string editor) program:

Code Block
languagebash
echo $PATH | sed 's/:/\n/g'

sed's string substitution pattern 's/:/\n/g' says to substitute all occurrences (the last g = global modifier) of the colon character : with the "character" \n, which is a newline.

...