Able to scp/ssh to AIX 6.1 machine, unable to sftp to it


 
Thread Tools Search this Thread
Operating Systems AIX Able to scp/ssh to AIX 6.1 machine, unable to sftp to it
# 1  
Old 06-05-2012
Able to scp/ssh to AIX 6.1 machine, unable to sftp to it

Hello, I am trying to figure out why I cannot sftp onto our aix6.1 machine. I can ssh/scp onto it, and sftp outbound seems to work properly, but I can't sftp onto it.
Code:
[root@aix71: /]# sftp aix61
Connecting to aix61...
root@aix61's password:
Connection closed
[root@aix71: /]#

This machine appears to have the pware version of sshd installed, if that makes a difference:
Code:
[root@aix61: /opt/pware64/etc]$ps -ef |grep sshd
    root 5439500       1   0   Feb 13      -  0:00 /opt/pware64/sbin/sshd

I guess this is the reason I have two similar directories? /etc/ssh:
Code:
[root@aix61: /etc/ssh]$ls
moduli                ssh_host_dsa_key      ssh_host_key          ssh_host_rsa_key      ssh_prng_cmds
ssh_config            ssh_host_dsa_key.pub  ssh_host_key.pub      ssh_host_rsa_key.pub  sshd_config

And /opt/pware64/etc:
Code:
[root@aix61: /opt/pware64/etc]$ls
ssh_host_dsa_key        ssh_host_ecdsa_key      ssh_host_key            ssh_host_rsa_key        sshd
ssh_host_dsa_key.pub    ssh_host_ecdsa_key.pub  ssh_host_key.pub        ssh_host_rsa_key.pub    sshd_config

I can provide the contents of either sshd_config file if that will help. Thank you in advance.
# 2  
Old 06-05-2012
Do you have a securified ftpd installed? FTP is a client-server protocol and it needs a running ftpd daemon on the server side to work. As far as i can see in your provided output only the sshd is running, not the sftpd. I don't know if "pware sshd" (which i don't know) can act as such - probably it can't.

I hope this helps.

bakunin
# 3  
Old 06-06-2012
the sftp daemon does not run all the time, when sftp connection is made, sshd starts sftpd, under the user that logs in

common issue:

in sshd_config check the path for sftp:

Code:
Subsystem       sftp    /usr/sbin/sftp-server

for example

I would uninstall the pware ssh server, since it's not necessary any more, and use the standard aix ssh server, so you can get patches and updates for it with tl upgrades

Last edited by funksen; 06-06-2012 at 06:13 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP or scp with password in a batch script without using SSH keys and expect script

Dear All, I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Discussion started by: ss112233
5 Replies

2. AIX

Unable to ssh or login to AIX server

We are having occasional problems accessing some AIX servers. When this happens we cannot ssh to the server in question or login via HMC console terminal window. We can ssh some commands to the server and get responses but other commands just hang, ssh serverA date returns the date, ssh serverA... (5 Replies)
Discussion started by: Kierong
5 Replies

3. Solaris

unable to sftp to a remote server from Unix machine

Hi, I get the below when i try to sftp to a remote server $ export SOCKS5C_CONFIG=~/.ssh/socks5c.conf $ sftp -v -s /usr/lib/sftp-server -oPort=2222 -oIdentityFile=~/.ssh/wm_privat> Connecting to ftp01.wmgruppe.de... Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f debug1:... (1 Reply)
Discussion started by: Bigbee
1 Replies

4. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

5. Red Hat

Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host

For a few days now I have been experiencing issues when trying to SSH into 1 of my machine. I get the following output when running 'ssh -vvv': server1:/home/mymadq> ssh -l root -vvv server2 OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: jaapar
3 Replies

6. AIX

Problems with SSH/SFTP between AIX and Mainframe

Hi, I'm not sure if this has been solved in this forum already but please do help me out if possible. Basically, I've already setup a passwordless SSH connection between 2 AIX IDs (say ID-1 and ID-2) with a Mainframe server ID (say MVSID). I'm able to successfully do an SSH from the AIX server to... (1 Reply)
Discussion started by: sambeet
1 Replies

7. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

8. HP-UX

sftp/scp/ssh script with password as authentication

Hello, Do you guys know set of commands that can incorporate to sftp/scp/ssh to add password in a script to automate file transfer. Our client is not using ssh keys authentication so we are force to create a script to pass the password into the script to transfer files via sftp/scp/ssh. We... (4 Replies)
Discussion started by: james_falco
4 Replies

9. UNIX for Dummies Questions & Answers

Unable to scp/sftp between two servers

I have four servers that for all intents and purposes are the same (I have the same profile on all four), North, South, Brooklyn & Queens. I have a script that scp's a file from Queens to brooklyn, and it runs just fine. I tried to replicate the script on South, to transfer a file to North, and... (1 Reply)
Discussion started by: DeCoTwc
1 Replies

10. AIX

ssh and scp in aix 4.3.3

I'm using scp to copy files to another company via our 4.3.3 server. I am having transfer problems right at the transfer point in scp. Below are 2 debug outputs showing the bottleneck. The lower level debug preceeds the higher level debug output. It just seems to stop and refuses to transfer... (0 Replies)
Discussion started by: oldogbert
0 Replies
Login or Register to Ask a Question