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

Who is Participating?
sakmanConnect With a Mentor Commented:
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
Is sshd running at all?

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


lssrc -s sshd

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

startsrc -s sshd

Can you post the relevant sftp entries in the config file?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.