...
| Expand |
|---|
| title | Other 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:
- Windows Subsystem for Linux – Windows 10 Professional includes a Ubuntu-like bash shells
- Cygwin (https://www.cygwin.com/)
- Includes an X-Windows server and an X11-enabled XTerm that can be installed
|
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 |
|---|
| language | bash |
|---|
| title | SSH to Lonestar6 at TACC |
|---|
|
ssh <your_TACC_userID>@ls6.tacc.utexas.edu
# For example:
ssh abattenh@ls6.tacc.utexas.edu
# For example:
ssh .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 |
|---|
| title | Logging 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 |
|---|
|
# show a long listing of all files in the current directory,
# including "dot files" that start with a period
ls -la |
...
| Code Block |
|---|
| language | bash |
|---|
| title | Create 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 |
|---|
|
cd
laun # hit Tab once after typing "laun"
# This will expand to launcher_creator.py
|
...
| Expand |
|---|
| title | Showing 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 |
|---|
| 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. |
...