Operating System - HP-UX
1832857 Members
3362 Online
110048 Solutions
New Discussion

How to get, ftp or rcp files from UX servers where we login by ssh

 
ezhilarasan_1
Occasional Advisor

How to get, ftp or rcp files from UX servers where we login by ssh

Hi,

How to get, ftp or rcp files from UX servers where we login by ssh
I tried ftp and rcp commands.
But I am getting message "Connection refused"
Please help me on this.

Thanks
R.Ezhil
5 REPLIES 5
Chris Watkins_1
Respected Contributor

Re: How to get, ftp or rcp files from UX servers where we login by ssh

Use scp in place of rcp:
scp remotenode:/path/to/remotefilename /path/to/localname

or

scp localfilename remotenode:/desired/remote/filename



Assuming you're currently able to ssh in without user/pass,
this will work identically to the rcp command.
Not without 2 backups and an Ignite image!
K.C. Chan
Trusted Contributor

Re: How to get, ftp or rcp files from UX servers where we login by ssh

Have you try sftp, it uses the same protocol and port as ssh. Since ssh seems to working for you, then you should have no problem with sftp.
Reputation of a thousand years can be determined by the conduct of an hour
Steven E. Protter
Exalted Contributor

Re: How to get, ftp or rcp files from UX servers where we login by ssh

I'll be on the target system there is an /var/adm/inetd.sec file that blocks ftp either by ip address or completely.

That or there is no ftpd daemon in the /etc/inetd.conf file. Or inetd -c needs to be run on the target box.

Check that out, though scp/sftp is a better course of action if the other fox is running that.

ps -ef | grep sshd to see on the target box again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: How to get, ftp or rcp files from UX servers where we login by ssh

It is very likely that ftp and 'r' commands like rcp are disabled for security reasons so you'll have to contact the remote system's administrator and turn on sftp or scp and setup appropriate keys. Sonce you are already using ssh, I would not compromise security by enabling ftp or rcp.


Bill Hassell, sysadmin
Sorrel G. Jakins
Valued Contributor

Re: How to get, ftp or rcp files from UX servers where we login by ssh

From ezilarasan's profile:
I have assigned points to 0 of 43 responses to my questions.