LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-12-2007, 02:19 PM   #1
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Rep: Reputation: 15
Rsh , Rlogin Without password


Hi all ,

I am using suse 10.1 and i want to enable rsh , rcp , in my pc's . So i installed rsh rpm and put entry in the /etc/securetty file
rsh
rlogin
rexec

But i want to use rcp & rsh without password. What i have to do for that.
Pls tell me.

Tks.
 
Old 08-12-2007, 02:37 PM   #2
bakfupai
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: CentOS, RHEL, SourceMage, OpenBSD
Posts: 40

Rep: Reputation: 15
I really recommend using ssh instead of rsh since it's encrypted, much more secure and can accomplish exactly what you want.
 
Old 08-14-2007, 09:04 AM   #3
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
Regarding rlogin

I need to use rcp also so. I dont want to enter password on each time for copying.
 
Old 08-14-2007, 10:04 AM   #4
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
with a properly setup sshd server, you will be able to use scp without any passwords using public/private keys.

'r' commands shouldn't be used anymore.
 
Old 08-14-2007, 11:23 AM   #5
thebouv
Member
 
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64

Rep: Reputation: 16
Going to chip and and say the same thing. Do yourself a favor and do not bother with rsh/rcp. Stay away from telnet as well in case that was on your mind.

Check out OpenSSH ( http://www.openssh.org ). By default, the sftp sub-system runs and you'll be able to do all your scp commands just fine and in an encrypted environment.

Then look into ssh-agent ( http://www.openbsd.org/cgi-bin/man.c...gent&sektion=1 ) for password-less use like you want. You'll merely need to authenticate each session (for instance, after you start the machine). Then ssh-agent will handle authenticating scp and ssh sessions for you afterwards.

Check the LQWiki for a mini-howto on ssh-agent: http://wiki.linuxquestions.org/wiki/Ssh-agent
 
Old 08-17-2007, 03:26 AM   #6
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
About scp

Tks Now I am using scp and it's good. But in rsh i execute remote commands,
How i can do that via "s".
 
Old 08-17-2007, 05:03 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
ssh can execute remote commands too. Eg:
Code:
dest="remoteuser@remotehost:/remote/dir"

/bin/ls -1 /var/log/jboss.log.* 2>/dev/null | while read f; do
  if [ -f "$f" ]; then
    gzip -9 <"$f" | ssh ${dest%%:*} "cat >\"${dest#*:}/$(basename "$f").gz\"" && rm -f "$f"
  fi
done
(real-world example)

Yves.
 
Old 08-17-2007, 08:58 AM   #8
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
Code:
ssh user@host command
 
Old 08-18-2007, 02:21 AM   #9
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
Reg ssh - remote host

Hi,
Tks now everything is working fine. Now i need some scripting help.


I want to access some(200) Routers & Switches and have to put the same confiuration in all the equipments. is there any way to do that via script.

Pls guide me .
Thanks.
 
  


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
how to configure rlogin/rsh in SUSE9 liyuefu SUSE / openSUSE 2 12-22-2007 07:55 AM
LTSP rlogin and rsh problem okkadu Linux - Server 2 05-16-2007 10:24 AM
Can't get rlogin, rsh to work in FC3 dangs Linux - Security 1 01-11-2005 12:45 PM
rsh and rlogin on Linux to HP-UX sammathew Linux - Networking 1 09-09-2003 05:17 PM
rsh and rlogin service configuration romagnol Linux - General 1 06-28-2002 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:27 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
Open Source Consulting | Domain Registration