[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] another surprisingly basic question



On Mon, 18 Sep 2000, Ian Wright wrote:

> I seem to be coming up with problems which I ought to know how to fix. This
> oneis - I have installed ssh onto a RH6.2 machine from the rpm and it has
> installed in the /usr/local/bin/ directory. So, how can I avoid having to
> either type /usr/local/bin/ssh or navigate to the directory and type ./ssh?
> What I mean is what do I have to do to make it so I can just type ssh in the
> default (/root) terminal window?

Your PATH env variable lists the command search path. Try typing echo
$PATH to see what it contains. "export PATH=$PATH:/usr/local/bin" should
work in bash. Add it to your .bashrc if you want it permanently.
Be warned that search paths for root users are usually limited for
security reasons. (Wouldn't want to run that random file called "ls" by
mistake would we? That's one reason why "." isn't on the path.)

> It also appears that I have two versions of ssh in the directory with
> executables 'ssh' and 'ssh2' - what is the difference between them - should
> I delete one? Replies suitable for a simpleton please - it hasn't been a
> good weekend ;o{

ssh talks ssh 1.x protocol ssh2 talks 2.x. Basically most people use 1.x
as the license for 2.x is a load of old cobblers.


---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.