rcp & rsh


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users rcp & rsh
# 1  
Old 05-01-2002
rcp & rsh

Hi everybody,

I have a problem with rcp & rsh command from Winnt 4 to an AIX machine.

I would like to use rsh from Winnt on Unix but it works only with some machines of the domain. With the others, an error message appears and say : "myadress.com: rshd: 0826-826 The host name for your address is not known.
rsh: can't establish connection".

What can I do ? I put "+ +" in my .rhosts file....

Thanks



Dimitri from Switzerland
# 2  
Old 05-02-2002
Sounds like a DNS problem. Make sure your DNS is configured correctly on each machine, or add the host entries to /etc/hosts.
# 3  
Old 05-07-2002
a- Add the IP, host_name and aliases (of the NT machine) in the /etc/hosts in both machines in the AIX machine.

execute an script with the following commands:

if [ ! f /etc/netsvc.conf ]
then
echo "hosts=local,bind" > /etc/netsvc.conf
else
echo "review the hosts definitions in the /etc/netsvc.conf"
echo "hosts=local,bind"
fi

In the NT machine:

Add the IP, host_name and aliases of the AIX machine in the
\winnt\system32\drivers\etc\hosts

b- Add the .rhosts in the home directory of the user in the AIX machines:

example for root:

aix box:
echo "server_NT Administrator" >> $HOME/.rhosts


c- Permit the root login in the AIX machine

chuser login=true rlogin=true root

Good luck. Hugo.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

RCP slow down and blocks login, telnet, rsh, etc on target server

Hello I have a LPAR AIX 6.1 on Power VM, Vio 2.2.3 and when I execute a rcp to this machine, I cant, simultaneosly, rlogin, telnet, rsh to this same LPARt. This commands stay hanged till the copy end, and Imeddiatlely the comand is executed (rlogin, telnet, rhs, etc). Someone can give me... (1 Reply)
Discussion started by: artur_dietrich
1 Replies

2. Red Hat

How to enable and test the rsh and rcp in RHEL 5.3?

Hello, Can you help me on how to activate the rsh and rcp services. And also how do i test it after i have enable it Thanks. (7 Replies)
Discussion started by: shtobias
7 Replies

3. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

4. UNIX for Advanced & Expert Users

RSH or SSH & security

I am wanting to run backups to remote servers ie: A to B's tape drive and B to A's tape drive. Should I use rsh or ssh? It looks as those rsh opens up security issues (the backup has to run as root). Which one should be used and does someone have the links to set up allowed connections. In what I... (7 Replies)
Discussion started by: jphess
7 Replies

5. Shell Programming and Scripting

ftp, rlogin , rcp, rsh are not wroking

Hi Friends I am facing one problem, I am not able to use ftp, rlogin , rcp, rsh in a particular server. when I am trying to ftp certain file from that server it is giving Connection closed by remote host. Now from other unix box I am not able to rlogin that particular server. as .rhosts... (3 Replies)
Discussion started by: itsjoy2u
3 Replies

6. UNIX for Advanced & Expert Users

how to check rsh/rcp between 2 servers

Hi, I need to check if rsh and rcp are enabled between to servers. What is the command to check both ? Servers : SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V445 SA says that it is configured , so what setting I need to do ? These must be enable for ORACLE id on... (1 Reply)
Discussion started by: reply2soumya
1 Replies

7. UNIX for Advanced & Expert Users

Remote commands problem using RSH & Rexec

I have enabled the RSH and Rexec command in my HP-UX server but when i try to send any command to the server it returns Execute Permission Denied except commands like ls-l C:\rsh xxx.xxx.xxx.xxx -l mpac mxpkill 12 the mxpkill command work when I log to the server using telnet with the same... (0 Replies)
Discussion started by: fhuwaidy
0 Replies

8. Shell Programming and Scripting

Rsh & Sqlldr

Dear expert, Can we invoke sqlldr command remotely. When I try rsh command in machine 10.1.65.116, it's failed on sqlloader command. However, nothing wrong on the shell scripts or environment setting of the remote environment, I able to execute in the scripts in remote machine. in machine... (8 Replies)
Discussion started by: epall
8 Replies

9. Shell Programming and Scripting

rcp error trapping in rsh

I am writing a program which is something like below: rsh host1 "rcp file dest:directory" I am running this script from a machine host2. host1 has rlogin configuration for host2. but, dest machine has no rlogin configuration for host1 and fails on remote calls. Could anyone tell me how... (2 Replies)
Discussion started by: vvejendla
2 Replies

10. UNIX for Dummies Questions & Answers

rsh & rlogin

I'm trying to execute the next command: " rsh CompName date " which means i want to get the date from a machine which i have its CompName. but i get the answer : "Connection refused" what do i need to do ? how can i sign myself as user or guest in the other machine ? thanks in... (2 Replies)
Discussion started by: Inbal
2 Replies
Login or Register to Ask a Question