Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Securing services with ssh?

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Sound not working with FreeBSD  
Author Message
Jochen Gensch

External


Since: Nov 04, 2003
Posts: 1



(Msg. 1) Posted: Tue Nov 04, 2003 5:45 pm
Post subject: Securing services with ssh?
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi!

I'm trying to find a way to secure my ftp server by using ssh2. I've
read something in the FreeBSD handbook and tried a command as follows:


ssh -2 -N -f -L 5025:localhost:21

and

ssh -2 -N -f -g -L 5025:localhost:25

My objective is that any client who wants to connect to my ftp server
has to use sftp (ssh2 over ftp).
But these commands don't work. Any help on that?


Thanks, Jochen

 >> Stay informed about: Securing services with ssh? 
Back to top
Login to vote
Desmond Coughlan

External


Since: Nov 04, 2003
Posts: 2



(Msg. 2) Posted: Tue Nov 04, 2003 5:58 pm
Post subject: Re: Securing services with ssh? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jochen Gensch wrote ...

> I'm trying to find a way to secure my ftp server by using ssh2. I've
> read something in the FreeBSD handbook and tried a command as follows:
>
> ssh -2 -N -f -L 5025:localhost:21
>
> and
>
> ssh -2 -N -f -g -L 5025:localhost:25
>
> My objective is that any client who wants to connect to my ftp server
> has to use sftp (ssh2 over ftp).
> But these commands don't work. Any help on that?

man (1) scp

- --
Desmond Coughlan |desmond [at] zeouane [dot] org
http://www.zeouane.org/

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBP6fMrmiD+5zjSqyTEQJ5twCbBAoyB5ducJOKsZTJS0o8NGi46BMAn0e4
ctkUemE2vwOTAPg4cKaZwTG5
=I6KL
-----END PGP SIGNATURE-----

 >> Stay informed about: Securing services with ssh? 
Back to top
Login to vote
Lowell Gilbert

External


Since: Dec 28, 2003
Posts: 25



(Msg. 3) Posted: Tue Nov 04, 2003 10:12 pm
Post subject: Re: Securing services with ssh? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Desmond Coughlan writes:

> Jochen Gensch wrote ...
>
> > I'm trying to find a way to secure my ftp server by using ssh2. I've
> > read something in the FreeBSD handbook and tried a command as follows:
> >
> > ssh -2 -N -f -L 5025:localhost:21
> >
> > and
> >
> > ssh -2 -N -f -g -L 5025:localhost:25
> >
> > My objective is that any client who wants to connect to my ftp server
> > has to use sftp (ssh2 over ftp).
> > But these commands don't work. Any help on that?
>
> man (1) scp

Or if you really want sftp, man 5 sshd_config.

But don't bother messing around with ports 21 or 25;
you're on the wrong track there.
 >> Stay informed about: Securing services with ssh? 
Back to top
Login to vote
Ng Pheng Siong

External


Since: Nov 05, 2003
Posts: 1



(Msg. 4) Posted: Wed Nov 05, 2003 1:29 am
Post subject: Re: Securing services with ssh? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

According to Jochen Gensch :
> I'm trying to find a way to secure my ftp server by using ssh2.
> [...]
> My objective is that any client who wants to connect to my ftp server
> has to use sftp (ssh2 over ftp).

sftp provides an ftp-like user interface over ssh, not tunneling of ftp
(the protocol) over ssh.

You'll also want to look at scp.

And FTP/TLS:

http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html


--
Ng Pheng Siong

http://firewall.rulemaker.net -+- Manage Your Firewall Rulebase Changes
http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL
 >> Stay informed about: Securing services with ssh? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]