• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1232
  • Last Modified:

IBM AIX : Error when trying to connect to sftp

Hi, I have checked /etc/ssh/sshd_config   to make sure that sftp is activated . but when i try to test it i get the error bellow

# sftp localhost
Connecting to localhost...
ssh_exchange_identification: Connection closed by remote host
Connection closed

Open in new window

0
cismoney
Asked:
cismoney
1 Solution
 
sakmanCommented:
If you have an /etc/hosts.allow file you could add an entry for sshd:

echo 'SSHD: ALL' >> /etc/hosts.allow

And then restart the sshd service:

stopsrc -s sshd ; startsrc -s sshd
0
 
woolmilkporcCommented:
Is sshd running at all?

Try ps -ef |grep sshd | grep -v grep

or

lssrc -s sshd

Should you see nothing (first command) or "inoperative" (second command) start sshd with

startsrc -s sshd

wmp
0
 
parparovCommented:
Can you post the relevant sftp entries in the config file?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now