- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp not working
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-08-2011 07:50 PM
03-08-2011 07:50 PM
sftp not working
If i run sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 07:56 PM
03-08-2011 07:56 PM
Re: sftp not working
> If i run sftp
Is the IP address valid? Can you ping it?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:06 PM
03-08-2011 08:06 PM
Re: sftp not working
PING 172.16.0.46: 64 byte packets
64 bytes from 172.16.0.46: icmp_seq=0. time=0. ms
64 bytes from 172.16.0.46: icmp_seq=1. time=0. ms
----172.16.0.46 PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
# sftp 172.16.0.46
No prob with the destination ip. The problem is sftp itself not work.
Even if I type sftp without ip, it will prompt to #
For working sftp if I type sftp it will appear
# sftp
Usage: sftp [options] user@host[:file [file]]
Options:
-1 Specify the use of protocol version 1.
-B buffer_size Specify the size of the buffer that sftp uses when transferring files.
-b batchfile Batch mode reads a series of commands from an input batchfile instead of stdin.
-C Enables compression.
-F ssh_config Specifies an alternative per-user configuration file for ssh.
-o ssh_option Used to pass options to ssh in the format used in ssh_config file.
-P sftp_server_path Connect directly to a local sftp server (rather than via ssh).
-R num_requests Specify how many requests may be outstanding at any one time.
-S program Specifies the SSH2 subsystem or the path for an sftp server on the remote host.
-s subsystem|sftp_server program Name of program to use for the encrypted connection.
-v Verbose mode.
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:24 PM
03-08-2011 08:24 PM
Re: sftp not working
For a start:
uname -a
> Even if I type sftp without ip, it will
> prompt to #
What are you running?
type sftp
> For working sftp [...]
Compare the results between the two systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:38 PM
03-08-2011 08:38 PM
Re: sftp not working
# uname -a
HP-UX CGCAPP4D B.11.31 U ia64 1511113692 unlimited-user license
# sftp
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:39 PM
03-08-2011 08:39 PM
Re: sftp not working
Sorry for typo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:41 PM
03-08-2011 08:41 PM
Re: sftp not working
# type sftp
Note that 'type' is a command. Do just as it appears above.
Check the size of the 'sftp' executable as well. It could have somehow gotten corrupted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 08:58 PM
03-08-2011 08:58 PM
Re: sftp not working
# type sftp
sftp is /usr/bin/sftp
# ll /usr/bin/sftp
lrwxr-xr-x 1 root sys 17 Oct 22 2008 /usr/bin/sftp -> /opt/ssh/bin/sftp
# cd /opt/ssh/bin
# ll
total 8192
-rwxr-xr-x 1 bin bin 280392 Jun 2 2008 scp
-rwxrwxr-x 1 bin bin 0 Mar 8 16:53 sftp
lrwxr-xr-x 1 root sys 16 Oct 22 2008 slogin -> /opt/ssh/bin/ssh
-rwxr-xr-x 1 bin bin 1378744 Jun 2 2008 ssh
-rwxr-xr-x 1 bin bin 561280 Jun 2 2008 ssh-add
-rwxr-xr-x 1 bin bin 489348 Jun 2 2008 ssh-agent
-rwxr-xr-x 1 bin bin 630208 Jun 2 2008 ssh-keygen
-rwxr-xr-x 1 bin bin 835388 Jun 2 2008 ssh-keyscan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 09:03 PM
03-08-2011 09:03 PM
Re: sftp not working
Here's your problem. The sftp binary is 0 bytes in size. You need to restore it from a backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 10:18 PM
03-08-2011 10:18 PM
Re: sftp not working
Where to set permission? I have compare with other server no diff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2011 11:28 PM
03-08-2011 11:28 PM
Re: sftp not working
executable permission for other for file ssh under /opt/ssh is missing for this server
drwxr-x--- 12 bin bin 8192 Oct 22 2008 ssh
After give permission then other user can use sftp.
Infact all file under /opt is without executebale for other compare to another server. No wonder from syslog I found cimserver for this server also not running.
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 01:11 AM
03-09-2011 01:11 AM
Re: sftp not working
let's run an swverify to check if you have other issues...
# swverify \*
This will check if the installed files were modified since the install.
Regards,
Viktor
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2011 01:45 AM
03-09-2011 01:45 AM
Re: sftp not working
ERROR: "CGCAPP4D:/": 1 products are not compatible for this system's
architecture or operating system. If the OS has been updated
since this product was installed, a newer version should be
installed if available.
ERROR: "CGCAPP4D:/": The software dependencies for 46 products or
filesets cannot be resolved.
WARNING: "CGCAPP4D:/": 332 files had warnings during this operation.
ERROR: "CGCAPP4D:/": 37 files had errors during this operation.
* The analysis phase failed for "CGCAPP4D:/".
* Verification had errors.
NOTE: More information may be found in the agent logfile using the
command "swjob -a log CGCAPP4D-0035 @ CGCAPP4D:/".
I will check and look into what file is outdated.
Thanks