[X-Unix] Beginner Questions: alias for SSH tunnel

John Harrold jmh17 at pitt.edu
Tue May 10 07:58:48 PDT 2005


Sometime in May dm87 at proparallax.com assaulted the keyboard and produced:

| So, I have put this line of code in both .bashrc and .bash_profile:
| 
| 	alias ftpME="sudo ssh -L 5000:www.mydomain.com:21 
| username at www.mydomain.com
                           ^i assume you have double quotes here

| 	-bash: ftpME: command not found

Generally when bash is started the first file that is sourced is the
.bash_profile.  A strange question, after you changed the .bash_profile
file did you open a new shell? The changes wont take effect until you
resource the file. This can be done by either starting a new shell or
typing:

source ~/.bash_profile

Other than that, it looks ok to me.

-- 
---------------------------------------------------------- 
                            | /"\                         
 john harrold               | \ / ASCII ribbon campaign   
 jmh at member.fsf.org      |  X  against HTML mail       
 the most useful idiot      | / \                         
----------------------------------------------------------
 What difference does it make to the dead, the orphans, 
 and the homeless, whether the mad destruction is brought 
 under the name of totalitarianism or the holy name of 
 liberty and democracy?
 --Gandhi
----------------------------------------------------------
  gpg --keyserver pgp.mit.edu --recv-key B23241CB
----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20050510/f367f9ea/attachment.bin


More information about the X-Unix mailing list