HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command syntax of ssh
Operating System - HP-UX
1828670
Members
2131
Online
109984
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-25-2003 06:51 AM
04-25-2003 06:51 AM
Hi,
I was submitted to an IT exam that have a question about SSH. The answer options are True or False.
Question:
Secure copy of files can be executed remotely with the command
ssh -l user host `cd dir; tar cvf - ./*` |tar xvf -
Is it true?
I know that there is the command scp, but using ssh, is it correct?
Thanx.
I was submitted to an IT exam that have a question about SSH. The answer options are True or False.
Question:
Secure copy of files can be executed remotely with the command
ssh -l user host `cd dir; tar cvf - ./*` |tar xvf -
Is it true?
I know that there is the command scp, but using ssh, is it correct?
Thanx.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 07:25 AM
04-25-2003 07:25 AM
Solution
Provided you want to extract the remote directory tree into the current working directory from where you submitted the ssh command, and provided the remote user has a directory dir in his $HOME this will work fine.
I constantly use similar constructs to move data between hosts.
I constantly use similar constructs to move data between hosts.
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2003 11:19 PM
04-27-2003 11:19 PM
Re: Command syntax of ssh
I am not too sure about that '*' wildcard in the ssh command, it might be that it will be expanded by your local shell and not the remote one. You might have to escape it.
Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 12:31 AM
04-28-2003 12:31 AM
Re: Command syntax of ssh
Michael,
the command string to be executed by the remote shell is already in single quotes.
However, mentioning this issue is a good point.
One has to be careful to quote any shell meta-characters (either by prepending backslashes or by putting them in single quotes) that are intended to be interpreted/epxpanded by the remote shell.
If not these will be expanded by the local shell.
Considering this behavior you can build up complex pipelines.
the command string to be executed by the remote shell is already in single quotes.
However, mentioning this issue is a good point.
One has to be careful to quote any shell meta-characters (either by prepending backslashes or by putting them in single quotes) that are intended to be interpreted/epxpanded by the remote shell.
If not these will be expanded by the local shell.
Considering this behavior you can build up complex pipelines.
Madness, thy name is system administration
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP