Page 1 of 1
Ftp Access in Lightsail Centos 7
Posted: Tue Jul 02, 2019 2:34 am
by saRca
Hello, I have a Centos 7 instance runing in Lightsail. Installed Vesta successfuly and main domain configured and working.
I also have access to Vesta Panel on port 8083. However, I can't get access via FTP.
This is my client conf:
Protocol: sftp
Host: my IP
Port: 22 (open in lightsail firewall)
Username: admin
Passwd: my passwd
This is the error:
when I login using lightsail Private Key, I can't browse the user's folder, because permissions.
My FTP conf:
How Can I give vesta users ftp access in lightsail?
Re: Ftp Access in Lightsail Centos 7
Posted: Tue Jul 02, 2019 3:26 am
by grayfolk
Port 22 is SSH. Use port 21 instead - default FTP port.
SFTP protocol not related to FTP server. For SFTP you should use private key for login in this case.
Re: Ftp Access in Lightsail Centos 7
Posted: Wed Jul 03, 2019 3:00 am
by saRca
Using por 21 I got this error:
"Error changing directory to /home/admin
Failed to change directory"
permissions I guess, but which ones?
Re: Ftp Access in Lightsail Centos 7
Posted: Wed Jul 03, 2019 3:06 am
by grayfolk
saRca wrote: ↑Wed Jul 03, 2019 3:00 am
Using por 21 I got this error:
"Error changing directory to /home/admin
Failed to change directory"
permissions I guess, but which ones?
Use admin credentials for ftp/ftps login.
For ssh/sftp see
How To Configure SSH Key-Based Authentication on a Linux Server for example.
Re: Ftp Access in Lightsail Centos 7
Posted: Wed Jul 03, 2019 3:12 am
by saRca
grayfolk wrote: ↑Tue Jul 02, 2019 3:26 am
Port 22 is SSH. Use port 21 instead - default FTP port.
SFTP protocol not related to FTP server. For SFTP you should use private key for login in this case.
How can I generate it for each username?
Re: Ftp Access in Lightsail Centos 7
Posted: Wed Jul 03, 2019 3:14 am
by grayfolk
saRca wrote: ↑Wed Jul 03, 2019 3:12 am
grayfolk wrote: ↑Tue Jul 02, 2019 3:26 am
Port 22 is SSH. Use port 21 instead - default FTP port.
SFTP protocol not related to FTP server. For SFTP you should use private key for login in this case.
How can I generate it for each username?
You should login to console as needed user.
You can allow ssh access for user via VestaCP.
Re: Ftp Access in Lightsail Centos 7
Posted: Wed Jul 03, 2019 3:17 am
by grayfolk
Also, if you use Windows you can use
Putty tool for this. After generate private key you should add public fingerprint into authorized_keys file for related user.