Re: Enabling SSH only for ftp (not for telnet possible) ?
- From: General Schvantzkoph <schvantzkoph@xxxxxxxxx>
- Date: 10 Dec 2006 22:49:01 GMT
On Sun, 10 Dec 2006 21:43:55 +0000, Peter Meister wrote:
I want to offer encrypted ftp transfers to my server for some users.
The user should be able to use (win)scp to transfer files to my server.
However it is often said that granting SSH access is a security risk for telnet.
Hmm, I am not sure. I thought I could grant SSH to a user for only his ftp connections.
Or does SSH mean: all or nothing: SSH for FTP AND telnet or no SSH at all?
Do I need full SSH permissions to use scp?
Peter
SSH is not Telnet, all communication is encrypted. However if what you are
worried about are users logging into the system using SSH I'm not sure if
there is any way to prevent this if you've given them ssh access.
I have an ssh server for distributing code to my customers. What I did is
the following,
I dedicated an old machine (500 MHz PIII) to the task. I did a fairly
minimal install of Fedora Core to it, basically enough to run ssh and no
other servers.
I create an account for each user and I have them send me their
id_rsa.pub public key which I put in an authorized_keys file. I don't
allow password access, the only way in is via RSA authentication.
All of the users accounts have 700 access privileges so that no user can
see anything that's in another user's account.
The public key for my ssh server is not in the authorized keys files for
any other machine on my LAN, that way you can't ssh from the server to
another machine (I don't run any legacy services on my machines so ssh is
the only way to log into them).
I can ssh into my ssh server from my other machines so I can copy things
to and from my account on the server so when I do a release I copy the
release tar.gz files to my account on the ssh server. I then su to root
and copy the files to the appropriate user accounts, I then do a chmod -R
700 so that everything in /home is private.
There is probably a better way to do this, but this works for me and I'm
confident that it's secure.
.
- Follow-Ups:
- Prev by Date: Authentication / encryption of stream from Windows XP Pro 64
- Next by Date: Re: Enabling SSH only for ftp (not for telnet possible) ?
- Previous by thread: Authentication / encryption of stream from Windows XP Pro 64
- Next by thread: Re: Enabling SSH only for ftp (not for telnet possible) ?
- Index(es):
Relevant Pages
|