Solved

Urgent : How to disable sftp on AIX

Posted on 2011-09-23
2
1,699 Views
Last Modified: 2013-11-17
Hi, I am having an issue. I activated sftp on aix servers and now, its creating lots of issues on the server.

How can i roll back without creating any risks.

to activate sftp i have used the procedure bellow


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

And then restart the sshd service:

stopsrc -s sshd ; startsrc -s sshd

Open in new window


0
Comment
Question by:cismoney
2 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 36587501
SFTP is just the FTP protocol provided through SSH

Disable / Turn off sftp server

Open /etc/ssh/sshd_config file:
    # vi /etc/ssh/sshd_config

Find line that read as follows:
    Subsystem sftp /usr/lib/openssh/sftp-server

Remove or comment out line by prefixing #:
    # Subsystem sftp /usr/lib/openssh/sftp-server

Save and close the file.
         
Restart sshd service:
# /etc/init.d/sshd restart

Cheers,
Hades666
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36587529
Hi,

what you did with hosts.allow has nothing to do with sftp in particular, but with sshd in general.

If it's this what's causing your issues rather edit /etc/hosts.allow and remove the SSHD line.

Then restart sshd.

wmp
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question