- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to transfer files via SSH ?
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
Forums
Discussions
Discussions
Discussions
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
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-30-2004 08:38 AM
03-30-2004 08:38 AM
how to transfer files and folders
via SSH
using linux rescue CD ?
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 08:59 AM
03-30-2004 08:59 AM
Re: how to transfer files via SSH ?
You probabily will want to use something like "ftp", since that would be available on the rescue disk.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 10:19 AM
03-30-2004 10:19 AM
Solutionscp -rp /cdrom/* targethost://targetdirectory
This command preserves permissions if possible and takes the entire contents of the cd and puts it in the target directory of the target host. -r stands for recursive.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 12:26 AM
03-31-2004 12:26 AM
Re: how to transfer files via SSH ?
put filename
or
get filename
put *
or
get *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 10:48 AM
06-06-2004 10:48 AM
Re: how to transfer files via SSH ?
but how it works with sftp user@host ...
to transfer the whole /etc directory including all subfolders, files, etc. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 01:37 PM
06-06-2004 01:37 PM
Re: how to transfer files via SSH ?
for sftp, to use interactively, it is the same as ftp, instead of get (for a single file), u use mget.
# sftp user@otherhost
after login
sftp> cd dir
sftp> mget *
sftp> exit
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 03:30 PM
06-06-2004 03:30 PM
Re: how to transfer files via SSH ?
To transfer files without using scp or sftp is by using a combination of tar and ssh command like below.
tar cpf - local_dir| (ssh user@remote_host "cd remote_dir; tar xpf -")
This will tar up the whole dir. structure and untar it on the remote host.
HTH,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 06:43 AM
06-09-2004 06:43 AM
Re: how to transfer files via SSH ?
From the man page:
-r Recursively copies entire directories. The targets of hard links
or soft links are copied. The links are not duplicated.
But I personally would prefer to tar and tranfer the tar file via sftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 07:06 AM
06-09-2004 07:06 AM
Re: how to transfer files via SSH ?
with
scp -r -p /etc/* user@remotehost:/home/save/etc
works excellent !
greetings
chris