Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-12-2007, 01:19 PM
|
#1
|
Member
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137
Rep:
|
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.
|
|
|
08-12-2007, 01:37 PM
|
#2
|
Member
Registered: Apr 2006
Location: Sweden
Distribution: CentOS, RHEL, SourceMage, OpenBSD
Posts: 40
Rep:
|
I really recommend using ssh instead of rsh since it's encrypted, much more secure and can accomplish exactly what you want.
|
|
|
08-14-2007, 08:04 AM
|
#3
|
Member
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137
Original Poster
Rep:
|
Regarding rlogin
I need to use rcp also so. I dont want to enter password on each time for copying.
|
|
|
08-14-2007, 09:04 AM
|
#4
|
Member
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368
Rep:
|
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.
|
|
|
08-14-2007, 10:23 AM
|
#5
|
Member
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64
Rep:
|
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
|
|
|
08-17-2007, 02:26 AM
|
#6
|
Member
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137
Original Poster
Rep:
|
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".
|
|
|
08-17-2007, 04:03 AM
|
#7
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
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.
|
|
|
08-17-2007, 07:58 AM
|
#8
|
Member
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368
Rep:
|
Code:
ssh user@host command
|
|
|
08-18-2007, 01:21 AM
|
#9
|
Member
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|