- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copying files from one server to another on re...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:16 AM
тАО03-10-2009 12:16 AM
Re: Copying files from one server to another on regular bases
ssh-keygen is secure shell command.
You need to find if you have installed secure shell product on your server.
#swlist |grep -i secure
#swlist |grep -i ssh
If it is not installed you can install HP ported Secure Shell or openssh which is avialble in net.
HP secure shell can be downloaded from above link.
openssh is here.
http://www.openssh.com/
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:36 AM
тАО03-10-2009 12:36 AM
Re: Copying files from one server to another on regular bases
Thanks, its working, but very very very slow. Why? FTP is quite fast. Can i make it fast like FTP? On my LAN, the transfer rate is 3MB per second
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:42 AM
тАО03-10-2009 12:42 AM
Re: Copying files from one server to another on regular bases
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:54 AM
тАО03-10-2009 12:54 AM
Re: Copying files from one server to another on regular bases
scp, sftp are always going to be slower than ftp due to the encryption.
You can write an ftp script including user/passwd information but this is not the best policy security wise.
You can use this:
ftp -n server <
cd /directory
put file
bye
EOT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:08 AM
тАО03-10-2009 01:08 AM
Re: Copying files from one server to another on regular bases
IPADDR="192.168.2.1"
USERNAME="remoteuser"
PASSORD="remotepassword"
SOURCEFILE="/home/username/file"
DESTFILE="/home/remoteuser/file"
(
ftp -vin <
quote USER $USRNAME
quote PASS $PASSWORD
put $SOURCEFILE $DESTFILE
quit
END_SCRIPT
) | grep "226 Transfer complete." > /tmp/ftp$SRCFILE
The assignments for IPADDR, USERNAME, PASSWORD, SOURCEFILE and DESTFILE should be changed as appropriate. Please also note that the target directory structure needs to be in place (same restrictions as 'cp').
I would suggest that from a security point of view scp is a much better solution and should be used where possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 01:11 AM
тАО03-10-2009 01:11 AM
Re: Copying files from one server to another on regular bases
Malcolm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 10:33 PM
тАО03-10-2009 10:33 PM
Re: Copying files from one server to another on regular bases
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 11:59 PM
тАО03-10-2009 11:59 PM
Re: Copying files from one server to another on regular bases
Just create .rhosts in $HOME on the target server with:
sourceserver user
and then try rcp. With this in place it should not prompt for a password.
regards,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 12:53 AM
тАО03-11-2009 12:53 AM
Re: Copying files from one server to another on regular bases
If your $HOME is over NFS, you can just list every machine in .rhosts with permission 600 and owner of the user:
machine1
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 01:21 AM
тАО03-12-2009 01:21 AM
Re: Copying files from one server to another on regular bases
Sourrce is ods
destination is devdb03
i have a user "oracle" on bother servers
i create .rhosts in /home/oracle/ which is home directory of user oracle and set permissions to 600. I created this on devdb03.
Now i am running rcp from ods-prim but facing error as follows.
$ rcp sqlnet.log devdb03:/home/oracle/
remshd: Login incorrect.
Please help thanks