Operating System - Linux
1759696 Members
3243 Online
108886 Solutions
New Discussion юеВ

Equivalent of remsh & rcp on a system with ssh

 
SOLVED
Go to solution
f. halili
Trusted Contributor

Equivalent of remsh & rcp on a system with ssh

Hello everyone,

I have system with scripts calling rcp & remsh to copy files & run scripts remotely.

On systems where rcp & remsh is not allowed, what is the equivalent of remsh & rcp?
How do you do the following via ssh or equivalent?

/usr/bin/remsh HOST -n /script/script.sh
/usr/bin/rcp -p HOST:/tmp/filename /tmp

THANKS
f. halili
derekh
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Equivalent of remsh & rcp on a system with ssh

Hi:

'scp' is the substitute for 'rcp'.

'ssh' is the replacement for 'remsh'.

Regards!

...JRF...
Ivan Krastev
Honored Contributor

Re: Equivalent of remsh & rcp on a system with ssh

You can use directly ssh commands:

ssh user@host command

scp file1 user@host:/path/file2



regards,
ivan
f. halili
Trusted Contributor

Re: Equivalent of remsh & rcp on a system with ssh

Hmmm ... can I bypass the asking of the password. I wan't to use it inside a script.

# scp -p host:/scripts/test.sh /tmp
Password:

Thanks,
f. halili
derekh
Ivan Krastev
Honored Contributor
Solution

Re: Equivalent of remsh & rcp on a system with ssh

Setup passwordless ssh (with key) for that user - http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html


ivan
f. halili
Trusted Contributor

Re: Equivalent of remsh & rcp on a system with ssh

THANKS!
derekh