LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2011, 05:12 PM   #1
amsedelm
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
starting a remote process without logging in


Is there a way I can start a process on another server without logging in, as is required in ssh or rsh? Just curious.
Thanks a lot!
 
Old 08-22-2011, 07:12 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Quote:
The ssh command can be used to execute a command on the remote machine without logging in to a shell prompt. The syntax is ssh hostname command. For example, if you want to execute the command ls /usr/share/doc on the remote machine penguin.example.net, type the following command at a shell prompt:

ssh penguin.example.net ls /usr/share/doc

After you enter the correct password, the contents of the remote directory /usr/share/doc will be displayed, and you will return to your local shell prompt.
http://www.linuxtopia.org/online_boo...nssh-using-ssh


If you want it automated, you'll need ssh-keys http://www.linuxtopia.org/online_boo...erate-keypairs

Last edited by chrism01; 08-23-2011 at 09:51 PM. Reason: add missing ']'
 
Old 08-22-2011, 10:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I think you might be thinking of a linux mmc replacement?

It would be a huge security risk to allow such a thing as start a process without some authentication. Logon is one form but others like certificates exist that may be useful.
 
Old 08-23-2011, 08:26 AM   #4
amsedelm
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I thought it would be a security risk. My manager is asking me to do research on such a scenario but I really don't see a safe solution. I thought I would ask some experts to see if I was missing something.

chrism01: I offered ssh and rsh to my manager and he wanted a solution that doesn't require authentication. Not safe.
jefro: do you mean multi-media card replacement?
Thanks a lot guys!
 
Old 08-23-2011, 10:03 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Quote:
he wanted a solution that doesn't require authentication.
Ouch!!!

If you absolutely have to do this, look at rsh http://linux.die.net/man/1/rsh using /etc/hosts.equiv http://linux.die.net/man/5/hosts.equiv or same syntax inside a user's home dir in a file called '.rhosts' eg https://akamal.wordpress.com/2007/01...-remote-shell/

Absolutely INSIST on getting this in writing, because when it's cracked, you will be the fall guy if you haven't CYA'd

Actually, ssh+suth keys would be transparent/invisible to the user once you've set it up; that still sounds like the best idea to me.
Have you got a reason from your mgr why he thinks he doesn't want auth?

Last edited by chrism01; 08-23-2011 at 10:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
process logging without using process accounting mikepeters76 Linux - Security 8 05-29-2009 12:11 AM
Running a background process and then logging off simplified Linux - General 10 10-10-2008 04:25 AM
Scripting Remote Logon - Starting Remote Gnome Desktop klmukp Linux - Newbie 1 09-21-2008 01:13 AM
BIND not starting or logging wacko_cracko Linux - Software 2 08-07-2008 08:27 AM
Process Logging barkers Linux - Software 3 11-07-2005 10:34 AM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration