Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section FTP Server
  • Search

Ftp Access in Lightsail Centos 7

Questions regarding the FTP Server
vsFTPd, ProFTPd
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
saRca
Posts: 3
Joined: Tue Aug 15, 2017 5:32 pm

Ftp Access in Lightsail Centos 7
  • Quote

Post by saRca » Tue Jul 02, 2019 2:34 am

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:

Image

when I login using lightsail Private Key, I can't browse the user's folder, because permissions.
Image

My FTP conf:
Image

How Can I give vesta users ftp access in lightsail?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by grayfolk » 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.
Top

saRca
Posts: 3
Joined: Tue Aug 15, 2017 5:32 pm

Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by saRca » 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?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by grayfolk » Wed Jul 03, 2019 3:06 am

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.
Top

saRca
Posts: 3
Joined: Tue Aug 15, 2017 5:32 pm

Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by saRca » 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?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by grayfolk » Wed Jul 03, 2019 3:14 am

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.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Ftp Access in Lightsail Centos 7
  • Quote

Post by grayfolk » Wed Jul 03, 2019 3:17 am

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.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “FTP Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password