How to configure Secure FTP Server.

Hi All,

How to configure Secure FTP Server to connect on 22 port.
and the ftp user also not should be able to ssh to server. only they

Please Help......

--
Thank&Regards
Umesh Gupta

How to configure Secure FTP Server.

Hi Umesh,

On Sep 14, 5:35 pm, Umesh Gupta wrote:
> Hi All,
>
> How to configure Secure FTP Server to connect on 22 port.

Follow the below steps to configure VSFTPD with SSL Certificate for
Secure Data Transfer and Secure Authentication (SSL/TLS
Authentication).

# yum install vsftpd

# openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/
vsftpd/vsftpd.pem -out /etc/vsftpd/vsftpd.pem

######## Configure vsftpd.conf File as below ##########

ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem

################################################

# /etc/rc.d/init.d/vsftpd restart

If you set "force_local_logins_ssl=YES" then your clients will be
required to use an FTP client that supports AUTH TLS/SSL in order to
connect. If you leave it at "NO" then people can connect securely or
insecurely

Hope This Help You

Thanks,

Mahipal Jhala

> and the ftp user also not should be able to ssh to server. only they
>
> Please Help......
>
> --
> Thank&Regards
> Umesh Gupta

How to configure Secure FTP Server.

Hello,


On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Hi All,



How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they


If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-


ssh <your-ip-address> -p <your-changed-port>

Hope this helps you.

 







Please Help......





--

Thank&Regards

Umesh Gupta




--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"

How to configure Secure FTP Server.

Thank you so much sir ji,
it working now....
one more thing...may i configure FTPS??

On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot wrote:
> Hello,
>
> On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta wrote:
>>
>> Hi All,
>>
>> How to configure Secure FTP Server to connect on 22 port.
>> and the ftp user also not should be able to ssh to server. only they
>
> If you want to connect FTP Using 22 Port, then you perform following,
>
> 1) Stop SSH Service and Change ssh service port from 22 to any other port
> which is not in use
> 2) Once you perform first step then Add line listen_port=22 into
> /etc/vsftpd/vsftpd.conf
> 3) Restart vsftpd service first
> 4) Restart sshd service second
>
> Now if your use wants to connect using ssh then you have to execute command
> as below :-
>
> ssh -p
>
> Hope this helps you.
>
>
>>
>>
>> Please Help......
>>
>>
>> --
>> Thank&Regards
>> Umesh Gupta
>>
>> --
>> Please read http://www.catb.org/~esr/faqs/smart-questions.html before
>> posting.
>> You received this message because you are subscribed to the "Vibrant
>> GNU/Linux User Group".
>> To stop receiving emails from this group, mail to
>> VGLUG-unsubscribe@googlegroups.com
>>
>>
>
>
> --
> Thanks & Regards,
> Tejas Barot
> Linux Administrator,
> Red Hat Certified Engineer,
> Linux Blog:- http://blog.ask4itsolutions.com
> Open Source :- http://opensource.ask4itsolutions.com
>
> Registered Linux User :-
> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586
>
> "Those who says Linux is not User Friendly that means,
> They don't want to be a Expert USER or,
> They don't want to get Friendly with Expert FRIEND - Tejas Barot"
>
>
> --
> Please read http://www.catb.org/~esr/faqs/smart-questions.html before
> posting.
> You received this message because you are subscribed to the "Vibrant
> GNU/Linux User Group".
> To stop receiving emails from this group, mail to
> VGLUG-unsubscribe@googlegroups.com
>
>

--
Thank&Regards
Umesh Gupta

How to configure Secure FTP Server.

Hello,


On Sat, Sep 18, 2010 at 5:46 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Thank you so much sir ji,

it working now....

one more thing...may i configure FTPS??


In this same topic Mr. Mahipal Jhala has posted howto you can follow that. And if you want to refer link You can refer that link which is posted by Mr. Sham it's also nice.


You try to configure let us know if you face any issues or difficulties.

 



On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot <networking.dept@gmail.com> wrote:
> Hello,

>

> On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

>>

>> Hi All,

>>

>> How to configure Secure FTP Server to connect on 22 port.

>> and the ftp user also not should be able to ssh to server. only they

>

> If you want to connect FTP Using 22 Port, then you perform following,

>

> 1) Stop SSH Service and Change ssh service port from 22 to any other port

> which is not in use

> 2) Once you perform first step then Add line listen_port=22 into

> /etc/vsftpd/vsftpd.conf

> 3) Restart vsftpd service first

> 4) Restart sshd service second

>

> Now if your use wants to connect using ssh then you have to execute command

> as below :-

>

> ssh <your-ip-address> -p <your-changed-port>

>

> Hope this helps you.

>

>

>>

>>

>> Please Help......

>>

>>

>> --

>> Thank&Regards

>> Umesh Gupta

>>

>> --

>> Please read http://www.catb.org/~esr/faqs/smart-questions.html before

>> posting.

>> You received this message because you are subscribed to the "Vibrant

>> GNU/Linux User Group".

>> To stop receiving emails from this group, mail to

>> VGLUG-unsubscribe@googlegroups.com

>>

>>

>

>

> --

> Thanks & Regards,

> Tejas Barot

> Linux Administrator,

> Red Hat Certified Engineer,

> Linux Blog:- http://blog.ask4itsolutions.com

> Open Source :- http://opensource.ask4itsolutions.com

>

> Registered Linux User :-

> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

>

> "Those who says Linux is not User Friendly that means,

> They don't want to be a Expert USER or,

> They don't want to get Friendly with Expert FRIEND - Tejas Barot"

>

>

> --

> Please read http://www.catb.org/~esr/faqs/smart-questions.html before

> posting.

> You received this message because you are subscribed to the "Vibrant

> GNU/Linux User Group".

> To stop receiving emails from this group, mail to

> VGLUG-unsubscribe@googlegroups.com

>

>







--

Thank&Regards

Umesh Gupta





--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"

How to configure Secure FTP Server.

here is a nice link to configure ftp and secure ftp with ssl how to

link.: http://www.brennan.id.au/14-FTP_Server.html

hope it helps you..


On Sat, Sep 18, 2010 at 5:46 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Thank you so much sir ji,

it working now....

one more thing...may i configure FTPS??



On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot <networking.dept@gmail.com> wrote:
> Hello,

>

> On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

>>

>> Hi All,

>>

>> How to configure Secure FTP Server to connect on 22 port.

>> and the ftp user also not should be able to ssh to server. only they

>

> If you want to connect FTP Using 22 Port, then you perform following,

>

> 1) Stop SSH Service and Change ssh service port from 22 to any other port

> which is not in use

> 2) Once you perform first step then Add line listen_port=22 into

> /etc/vsftpd/vsftpd.conf

> 3) Restart vsftpd service first

> 4) Restart sshd service second

>

> Now if your use wants to connect using ssh then you have to execute command

> as below :-

>

> ssh <your-ip-address> -p <your-changed-port>

>

> Hope this helps you.

>

>

>>

>>

>> Please Help......

>>

>>

>> --

>> Thank&Regards

>> Umesh Gupta

>>

>> --

>> Please read http://www.catb.org/~esr/faqs/smart-questions.html before

>> posting.

>> You received this message because you are subscribed to the "Vibrant

>> GNU/Linux User Group".

>> To stop receiving emails from this group, mail to

>> VGLUG-unsubscribe@googlegroups.com

>>

>>

>

>

> --

> Thanks & Regards,

> Tejas Barot

> Linux Administrator,

> Red Hat Certified Engineer,

> Linux Blog:- http://blog.ask4itsolutions.com

> Open Source :- http://opensource.ask4itsolutions.com

>

> Registered Linux User :-

> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

>

> "Those who says Linux is not User Friendly that means,

> They don't want to be a Expert USER or,

> They don't want to get Friendly with Expert FRIEND - Tejas Barot"

>

>

> --

> Please read http://www.catb.org/~esr/faqs/smart-questions.html before

> posting.

> You received this message because you are subscribed to the "Vibrant

> GNU/Linux User Group".

> To stop receiving emails from this group, mail to

> VGLUG-unsubscribe@googlegroups.com

>

>






--

Thank&Regards

Umesh Gupta





--
Regards
SHAM P. ARSIWALA.

RedHat Certified Engineer
M.: 9327247499.
ElectroMech Corporation

www.electromech.info

How to configure Secure FTP Server.

Very good suggestion, Tejas Sir....yaa


On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot <networking.dept@gmail.com> wrote:

Hello,


On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Hi All,



How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they


If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-


ssh <your-ip-address> -p <your-changed-port>

Hope this helps you.

 







Please Help......





--

Thank&Regards

Umesh Gupta



--

Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.









--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"







--

K@r@n

karankk09@gmail.com
karankk09@yahoo.com
Mob:- 99 78 79 78 68


Rhce Ceritficate No:-805010074550616

(Electromech Corporation, Ahmedabad)


How to configure Secure FTP Server.

Its good that you have given the command to ssh to a remote machine that is running ssh on a different  port other than 22.


But can you please highlight, how i m going to use ftp from the client machine to a remote ftp server, that is running ftp on a different port i.e 22 in your case. I mean is  there any parameter with ftp command or lftp command. And if i m sitting on a windows CLI, how i m gonna connect to ftp server runnning on port 22.


On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot <networking.dept@gmail.com> wrote:

Hello,


On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Hi All,



How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they


If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-


ssh <your-ip-address> -p <your-changed-port>

Hope this helps you.

 







Please Help......





--

Thank&Regards

Umesh Gupta



--

Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.









--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"





How to configure Secure FTP Server.

Hello,


On Wed, Sep 15, 2010 at 9:34 AM, P.K.Thakur <rockyaryan22napster@gmail.com> wrote:

Its good that you have given the command to ssh to a remote machine that is running ssh on a different  port other than 22.


But can you please highlight, how i m going to use ftp from the client machine to a remote ftp server, that is running ftp on a different port i.e 22 in your case. I mean is  there any parameter with ftp command or lftp command. And if i m sitting on a windows CLI, how i m gonna connect to ftp server runnning on port 22.


I don't know about windows CLI or windows connectivity....... But For Linux I can definately tell you

Follow below for connect ftp and lftp using command line :-

To Using FTP Command from terminal Just execute :- ftp <your-server> <port>


To Using LFTP you can assign different port by using -p option

In GUI Clients, You just need to write your port number in port name box.

Hope this helps.

 



On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot <networking.dept@gmail.com> wrote:

Hello,


On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta <umesh338@gmail.com> wrote:

Hi All,



How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they


If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-


ssh <your-ip-address> -p <your-changed-port>

Hope this helps you.

 







Please Help......





--

Thank&Regards

Umesh Gupta



--

Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.









--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"





--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"

How to configure Secure FTP Server.

Hi,

well you can use same thing for window's command line...
like open the command prompt in any window version and use for ftp connection ( Wherever the ftp-server like in window, linux,etc.. concept must be same)

ftp ip-address (port-no) (if you define particular port than user it at last)
OR you may be use GUI ftp client for windows....
Now a days, there are so many GUI tool available ..like winSCP,GUI FTP, CoffeeCup Free FTP, Cute FTP,

Use it as per your convenient......

Reagrds
Milap Amin.

@@@@@@@@@@@@@@@@@@@@@@@@@

On Wed, 15 Sep 2010 11:29:11 +0530 wrote
>Its good that you have given the command to ssh to a remote machine that is running ssh on a different  port other than 22.
But can you please highlight, how i m going to use ftp from the client machine to a remote ftp server, that is running ftp on a different port i.e 22 in your case. I mean is  there any parameter with ftp command or lftp command. And if i m sitting on a windows CLI, how i m gonna connect to ftp server runnning on port 22.

On Wed, Sep 15, 2010 at 8:00 AM, Tejas Barot wrote:

Hello,

On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta wrote:

Hi All,

How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they

If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-

ssh -p

Hope this helps you.

 

Please Help......

--

Thank&Regards

Umesh Gupta

--

--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com

Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"

--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/

How to configure Secure FTP Server.

Hi Umesh,

OR may be can use chroot environment for ftp server.
that also one of good and secure way for ftp server.

Open vsftpd configuration file - /etc/vsftpd/vsftpd.conf
# vi /etc/vsftpd/vsftpd.conf

#Make sure following line exists (and uncommented):

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/chroot_list

chroot_enable_password=YES ( add this line)

touch /etc/vsftpd/chroot_list

vim /etc/vsftpd/chroot_list

add the user which you not want to allow to access some confidential location.

#Save and close the file. Restart vsftpd.

/etc/init.d/vsftpd restart

Note: if Selinux in enforcing mode than make sure ftpuser_home_dir is set to on.

Now all users of FTP will be limited to accessing only files in their own home directory. They will not able to see /, /etc, /root and /tmp and all other directories. This is an essential security feature.

I hope it will useful info for you........

Regards
Milap Amin

##################################################################

On Wed, 15 Sep 2010 08:00:00 +0530 wrote
>Hello,

On Tue, Sep 14, 2010 at 6:05 PM, Umesh Gupta wrote:

Hi All,

How to configure Secure FTP Server to connect on 22 port.

and the ftp user also not should be able to ssh to server. only they

If you want to connect FTP Using 22 Port, then you perform following,

1) Stop SSH Service and Change ssh service port from 22 to any other port which is not in use

2) Once you perform first step then Add line listen_port=22 into /etc/vsftpd/vsftpd.conf
3) Restart vsftpd service first
4) Restart sshd service second

Now if your use wants to connect using ssh then you have to execute command as below :-

ssh -p

Hope this helps you.

 

Please Help......

--

Thank&Regards

Umesh Gupta

--

--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com

Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"

--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/