- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command For Name Of Host Machine At the sftp>
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
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
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
тАО05-06-2004 03:35 AM
тАО05-06-2004 03:35 AM
Command For Name Of Host Machine At the sftp>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:37 AM
тАО05-06-2004 03:37 AM
Re: Command For Name Of Host Machine At the sftp>
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:37 AM
тАО05-06-2004 03:37 AM
Re: Command For Name Of Host Machine At the sftp>
Check it.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:39 AM
тАО05-06-2004 03:39 AM
Re: Command For Name Of Host Machine At the sftp>
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:42 AM
тАО05-06-2004 03:42 AM
Re: Command For Name Of Host Machine At the sftp>
Not sure about sftp, but the command in ftp is
ftp> status
First line of the output will be the hostname.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:47 AM
тАО05-06-2004 03:47 AM
Re: Command For Name Of Host Machine At the sftp>
sfpt> lcd /tmp
sftp> get /etc/rc.config.d/netconf
sftp> !grep HOSTNAME netconf
or
sftp> !
ps |grep sftp
ps -ef |grep PID-of-sftp |grep ssh
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 11:26 AM
тАО05-06-2004 11:26 AM
Re: Command For Name Of Host Machine At the sftp>
!
So, sftp from machine_A to machine_B,
!uname -n
will give you machine_A
But you know what system you are on, and what you're connecting to already, right???
Best think I can think of (assuming this is part of a script) is to run an ssh command first:
ssh user@machine_B uname -n
Then do your sftp. Takes an extra connection, but it will work if the name of machine_B is what you are after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 03:02 AM
тАО05-07-2004 03:02 AM
Re: Command For Name Of Host Machine At the sftp>
fsftp: no hostname specified; use "open host.name" to connect
enter: help
enter: open
you should see login prompt, like:
some tricks might be:
lcd
!pwd list client's working dir