sftp question and httpd tweak question

wanren

Verified User
Joined
Mar 1, 2010
Messages
29
in the admin backup section, there is remote ftp function. but I need sftp function for some reason.
I have checked the script /usr/local/directadmin/scripts/ftp_upload.php
but there is nowhere specifying the port. I need to change the default port as 22 instead of port21.

I have checked
/etc/httpd/conf/extra/httpd-info.conf
I cannot find the some term such as "MaxClients"...
 
Why would you change the port to 22. Just cause you change the port to 22 doesnt mean it is going to be sftp...lmao.
 
Why would you change the port to 22. Just cause you change the port to 22 doesnt mean it is going to be sftp...lmao.

If SSH is running on port 22, then yes, it would be going to sftp.

I think what he is requesting is the option to use SFTP and to change the port to 22 instead of 21. I do not think from his post that he is wanting to change his FTP servers port from 21 to 22.

As of right now, I do not think this feature is available (SFTP in backup area).
 
Thanks buddys, I want to remote backup users to my local machine, but the port 21 and 80 are blocked by my ISP, Phew...
That would be great If the upload script can connect my machine via another port besides 21...

Thanks BestBoard for your hints! I should have gone through all the files located in /etc/httpd/conf/extra/ :D
 
Ok, so you know you would need to change the port of your FTP server to the alternate port name. I would recommend you use something other than port 22. Try 2121 for example.

I'm thinking the ftp_upload.php file in /usr/local/directadmin/scripts is what you would want to modify to upload to an alternate port.

You would change line 22 to read as following:

$FTPPUT -f $CFG -V -P 2121 -t 25 -m "$ftp_path" "$ftp_local_file" 2>&1

I could be wrong, but it's worth a try.
 
port 80 is blocked by your isp? it's very strange.

Not strange at all. Many ISP's block common daemon ports so that residential customers cannot host servers without paying for a commercial version of their service.
 
Back
Top