LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2004, 11:48 PM   #1
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
dont want sftp on OpenSSH


I have openssh on one of my conputers, but I want to run a real FTPD on it, 2 questions.

1) what port does sftp run on?
2) if it is indeed port 21, how to I tell openssh to disable sftp.
 
Old 04-26-2004, 12:56 AM   #2
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
sftp uses the ssh port, tcp port 22, so you can run both openssh and an ftp server on the same computer.
 
Old 04-26-2004, 03:07 AM   #3
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
You could always comment out teh following line in /etc/ssh/sshd_config:

Subsystem sftp /usr/libexec/openssh/sftp-server

Restart the sshd service and then it won't allow connections
 
Old 12-08-2004, 12:47 PM   #4
themassiah
LQ Newbie
 
Registered: Dec 2003
Location: Oswego, NY
Distribution: RedHat, mostly.
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by AMMullan
You could always comment out teh following line in /etc/ssh/sshd_config:

Subsystem sftp /usr/libexec/openssh/sftp-server

Restart the sshd service and then it won't allow connections
Thanks for your suggestion, here. I was taking a look on how to do the same thing (disable SFTP in RedHat Enterprise Server 3) and I did what you suggested. I also "rpm -e vsftpd" to remove the default FTP client that comes with RHES3. Ideally, there wouldn't be any file-transferring mechanisms of this sort off or onto this box for right now. The problem is, I can still connect via SFTP, even after I restarted the service. I even went so far as to restart the machine, yet I can still connect to this machine via SFTP. Here's what I've got:

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
# Subsystem sftp /usr/libexec/openssh/sftp-server

Any suggestions on what to do next?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Concepts/Security types/ Setup: OpenSSH/sshd/ssh/scp/sftp Caud Pong Linux - Security 5 09-23-2004 06:51 AM
new to linux dont what distro to use dont no much command xman2007 Linux - Newbie 3 01-02-2004 05:32 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration