Computing.Net > Forums > Linux > ssh and program execution on remote

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ssh and program execution on remote

Reply to Message Icon

Name: lpe404
Date: October 12, 2002 at 16:02:11 Pacific
OS: mandrake 9.0
CPU/Ram: 333/256
Comment:

I'm ssh'ing from my linux machine to a
Solaris network with the following command:
ssh -lusername remotemachine

I can logon just fine and run any unix
commands fine (i.e. ls, cd, etc). However,
I cannot execute any programs I know are on
the remote unix machine. For example,
there is a program on the remote unix
machine called foo that I know exists (and
I can see it if I do and ls and the file
permissions are rwxrwxrwx), however when I
type foo on the command line to execute it,
I get "Command not found." Am I missing a
flag on the ssh command or a configuration
file somewhere?

Thanks for your help



Sponsored Link
Ads by Google

Response Number 1
Name: Lawrence
Date: October 12, 2002 at 16:07:41 Pacific
Reply:

How about if you change to where "foo" is
and run

./foo

Lawrence


0

Response Number 2
Name: David Perry
Date: October 12, 2002 at 17:48:27 Pacific
Reply:

What Lawrence is saying is that for security reasons the current directory is not included in your path. If it was some intruder my place a malicious executable with the same name as a system executable in a directory other than what is in your path and you could be tricked in to running it.
Don't change your path. If you need to execute something outside of the normal directories ./executable .


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: ssh and program execution on remote

Enabling ssh and rsh in RH7.2 www.computing.net/answers/linux/enabling-ssh-and-rsh-in-rh72/15368.html

mouse and programs www.computing.net/answers/linux/mouse-and-programs/23172.html

SSH and SUDO www.computing.net/answers/linux/ssh-and-sudo/23418.html