You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Getting to a remote computer

The terminal window

SSH

ssh is an executable program that runs on your local computer and allows you to connect securely to a remote computer.

On Macs, Linux and Windows Git-bash or Cygwin, you run it from a Terminal window. Answer yes to the SSH security question prompt.

SSH to access Lonestar at TACC
ssh your_TACC_userID@stampede.tacc.utexas.edu

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

  • Double-click the Putty.exe icon
  • In the PuTTY Configuration window
    • make sure the Connection type is SSH
    • enter stampede.tacc.utexas.edu for Host Name
    • 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

The bash shell

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: your local Terminal and 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 your typing 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 called by the bash shell.

Setting up your environment

First create a few directories and links we will use (more on these later).

You can copy and paste these lines from the code block below into your Terminal window. Just make sure you hit "Enter" after the last line.

cd 
ln -s -f $SCRATCH scratch
ln -s -f $WORK work
ln -s -f /corral-repl/utexas/BioITeam

mkdir -p $HOME/local/bin
cd $HOME/local/bin
ln -s /corral-repl/utexas/BioITeam/bin/launcher_creator.py

 

Now execute the lines below to set up a login script:

<pre>

cd

cp /work/01063/abattenh/seq/code/script/tacc/lonestar_dircolors .dircolors

cp /work/01063/abattenh/seq/code/script/tacc/lonestar_profile .profile_user

chmod 600 .profile_user

</pre>

 

Finally, log off and log back in to <span class='i-system'>lonestar</span>. You should see a new command prompt:

 lstar:~$

 

And nice directory colors when you do this:

 ls -la

 

=== .profile_user ===

Let's take a quick look at what is being done by our <span class='i-path'>$HOME/.profile_user</span> login script. Its contents are shown on the [[Playtime:TACC_common#.profile_user_template|Common Iyer Lab resources at TACC]] page

 

'''''Note:''''' To see hidden "dot" files in directory listings, you need to use the -a option:

 ls -a

 ls -la

 

  • No labels