- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp: bind to an address
Operating System - HP-UX
1752307
Members
5393
Online
108786
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
Discussions
Discussions
Forums
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
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
тАО09-03-2006 06:39 PM
тАО09-03-2006 06:39 PM
Hi,
I know that with ssh/scp you can bind the ssh-daemon to a specific ip address. So only this ip address has to be allowed through the firewall
e.g.:
ssh -b 11.22.33.44 user@host
scp -o BindAddress=11.22.33.44 user@host
How can I do this with sftp?!
I know that with ssh/scp you can bind the ssh-daemon to a specific ip address. So only this ip address has to be allowed through the firewall
e.g.:
ssh -b 11.22.33.44 user@host
scp -o BindAddress=11.22.33.44 user@host
How can I do this with sftp?!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2006 07:39 PM
тАО09-03-2006 07:39 PM
Solution
The commands you mentioned bind only the ssh _client_ to the specified address. You need this only if your client host has more than one IP address that is visible to the network (the localhost address, 127.0.0.1, does not count here).
For sftp, you can use the same kind of options as for scp:
sftp -o BindAddress=11.22.33.44 user@host
The ssh-daemon (sshd) should be running on the remote server (i.e. the server you are connecting to). The ssh-daemon on the local host has no role in handling outgoing connections. If you don't want to accept incoming SSH/scp/SFTP connections on a host, you can disable sshd: the outgoing connections will still work.
To bind the sshd to a specific IP address, you use the configuration directive "ListenAddress" in the sshd_config configuration file. This configuration file is located in /opt/ssh/etc/sshd_config, if you are using HP's pre-packaged OpenSSH.
For sftp, you can use the same kind of options as for scp:
sftp -o BindAddress=11.22.33.44 user@host
The ssh-daemon (sshd) should be running on the remote server (i.e. the server you are connecting to). The ssh-daemon on the local host has no role in handling outgoing connections. If you don't want to accept incoming SSH/scp/SFTP connections on a host, you can disable sshd: the outgoing connections will still work.
To bind the sshd to a specific IP address, you use the configuration directive "ListenAddress" in the sshd_config configuration file. This configuration file is located in /opt/ssh/etc/sshd_config, if you are using HP's pre-packaged OpenSSH.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2006 07:55 PM
тАО09-03-2006 07:55 PM
Re: sftp: bind to an address
Hi,
I tried this, but I got an error:
$ sftp -o BindAddress=11.22.33.44 user@55.66.77.88
Connecting to 11.22.33.44...
command-line: line 0: Bad configuration option: BindAddress
Couldn't read packet: Bad file number
I tried this, but I got an error:
$ sftp -o BindAddress=11.22.33.44 user@55.66.77.88
Connecting to 11.22.33.44...
command-line: line 0: Bad configuration option: BindAddress
Couldn't read packet: Bad file number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2006 09:54 PM
тАО09-03-2006 09:54 PM
Re: sftp: bind to an address
Which SSH version are you using?
Is it the commercial one from ssh.com, the HP-customized free OpenSSH from software.hp.com or another version from HP-UX Porting Archive?
If your version is very old, you might want to try a newer version. If you are using the ssh.com product, it may have a very different syntax: I don't have a current ssh.com product at hand so I cannot check at the moment.
Is it the commercial one from ssh.com, the HP-customized free OpenSSH from software.hp.com or another version from HP-UX Porting Archive?
If your version is very old, you might want to try a newer version. If you are using the ssh.com product, it may have a very different syntax: I don't have a current ssh.com product at hand so I cannot check at the moment.
MK
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP