- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- viewing remote file
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
тАО11-15-2010 11:19 AM
тАО11-15-2010 11:19 AM
viewing remote file
I have established ssh passwordless authentication between 2 servers.I can login/scp between servers w/o p/w.Now i want to view serverA:/tmp/test from server B.
gcc@task:/home/gcc>cat gcc@x.x.x.x:/home/gcc/file
cat: Cannot open gcc@x.x.x.x:/home/gcc/file: No such file or directory
what command i should fire to view.
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 11:31 AM
тАО11-15-2010 11:31 AM
Re: viewing remote file
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 11:44 AM
тАО11-15-2010 11:44 AM
Re: viewing remote file
Thanks for the response.Your command doing only direct ssh login to other server.I want to view the file w/o logging in to server A.
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 11:58 AM
тАО11-15-2010 11:58 AM
Re: viewing remote file
How do you expect to do that? How can you look at a file without somehow logging into the server?
The command that was given above will connect to the remote server, cat the file, and then disconnect.
That is the most expedient way to do what you require.
You cannot do this directly with 'cat' or 'more' or 'less' because those have absolutely no idea what the 'user@server:file' syntax means. Those utilities will just assume it is a local file and error as you have seen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 11:58 AM
тАО11-15-2010 11:58 AM
Re: viewing remote file
Then you should be using NFS.