Did you do the second part of the tutorial as well? I couldn't get SSHFTP to work on Ubuntu 14.
I have succeeded in installing sFTP with Laravel forge
Hi everyone,
I've followed this lesson http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/
It was very easy
I hope to benefit from this lesson
Thank you, Majid
Hi, I did first part : Setup FTP server on Ubuntu 14.04
But I ignored the number Step 5 and Step 6
then started in second part : Securing FTP ( SFTP )
that's all
You installed sFTP with Laravel Forge? What you linked to just explains how to install the FTP server software onto a server, no "Forge" involved.
Correct me if I'm totally wrong, but I believe sFTP should "just work" regardless because it uses SSH. Forge's servers already have openssh-server installed, that's how we connect to it to SSH into the server.
However regular FTP won't without installing an FTP server.
Yep, I can login with sftp without doing anything to my forge server.
Sftp "just works" by default for the "forge" user. However it won't work for new users (sudo adduser newuser). Any suggestions?
Not sure on the setup, depends how it's setup since it can read a file for users or via system users
@dimsav
I think password-based access is turned off. In order to log in using SSH (sFTP included), you'll need to add your SSH public key to the authorized_keys file in the new user's home directory (/home/newuser/.ssh/authorized_keys). This will allow SSH connections as that user in the server.
You can use the same key you use with user forge or create a new key to connect to your user. Note that this is the public key that lives on your local computer, not one created within the server.
@fideloper thanks for you reply :) After creating the .ssh directory and filling the authorised_keys file with my public key, I was able to login.
The purpose of the new user account is to give access to the customer's "seo experts" to make some changes.
What is in your opinion the best approach to restrict access to the rest of the server?
Thanks!
A full chroot for users or use normal FTP with chroot to home directory.
@Bashy, do you have resources on that? I agree, but haven't done that myself yet.
@fideloper Which one? I've tried a full chroot before with most of the files needed to run things. I'm not that great at understanding what it's doing and what the best security is for it. chroot for things like Proftpd is built in.
Hi, I have followed all steps of http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/ this. Sftp is working , but ftp is not working. and after creating sftp/ftp the code is not deploying . check this screenshot http://awesomescreenshot.com/0ca44pyp22
Hey there,
any news on this?
Did anyone create a receipe script for laravel forge to get this to work?
Sharing recipe scripts for laravel forge would be awesome!
Greets
Initially, I was unclear how to connect to my Laravel Forge server using sFTP. However, I figured it out, and it required no additional server setup. Here's what I did.
-
Using FileZilla, I entered new server details. HOST: The IP Address, Protocol: SFTP, Port: (I left blank - not sure what it defaults to), Login Type: Normal, User: forge (or whatever your server username is), Password: forge's SUDO password.
-
Add my private RSA key into FileZilla. This is the part that was unclear and not explained. To do this, in FileZilla, choose FileZilla > Settings > SFTP. Click the "Add key file..." button. Now you have to browse to your private RSA key. The ".ssh" folder is likely hidden, so in OS X you have to press "Command + Shift + ." to show hidden files. Browse to your private RSA key and select it.
-
Now you should be able to connect to your Laravel Forge server using SFTP.
I hope this helps somebody. For Liberty!
@skcin7 Great help, thank you very much!
@skcin7 i tried it but mine is failing , i do ihave private rsa but its giving authentication fail
Please or to participate in this conversation.