Solved

Urgent : How to disable sftp on AIX

Posted on 2011-09-23
2
1,670 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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now