Can you use SFTP with VSFTPD
up vote
0
down vote
favorite
I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.
I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.
I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.
Many thanks
vsftpd sftp
add a comment |
up vote
0
down vote
favorite
I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.
I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.
I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.
Many thanks
vsftpd sftp
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.
I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.
I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.
Many thanks
vsftpd sftp
I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.
I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.
I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.
Many thanks
vsftpd sftp
vsftpd sftp
asked Dec 15 '17 at 15:01
Newfoundland
614
614
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.
Add new users:
sudo adduser username
Then connect to the system:
ssh username@host
sftp localhost
You will be prompted for a password for all commands above.
Update: How to jail users to their home with sftp can be found here.
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.
Add new users:
sudo adduser username
Then connect to the system:
ssh username@host
sftp localhost
You will be prompted for a password for all commands above.
Update: How to jail users to their home with sftp can be found here.
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
add a comment |
up vote
0
down vote
SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.
Add new users:
sudo adduser username
Then connect to the system:
ssh username@host
sftp localhost
You will be prompted for a password for all commands above.
Update: How to jail users to their home with sftp can be found here.
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
add a comment |
up vote
0
down vote
up vote
0
down vote
SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.
Add new users:
sudo adduser username
Then connect to the system:
ssh username@host
sftp localhost
You will be prompted for a password for all commands above.
Update: How to jail users to their home with sftp can be found here.
SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.
Add new users:
sudo adduser username
Then connect to the system:
ssh username@host
sftp localhost
You will be prompted for a password for all commands above.
Update: How to jail users to their home with sftp can be found here.
edited Dec 15 '17 at 15:33
answered Dec 15 '17 at 15:10
RoVo
6,6121539
6,6121539
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
add a comment |
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
This doesn't jail the user as the OP is requesting.
– Thomas Ward♦
Dec 15 '17 at 15:18
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
– Newfoundland
Dec 15 '17 at 15:19
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f986580%2fcan-you-use-sftp-with-vsftpd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown