started ubuntu lightsail instance which creates the folders with hostusername:psaserv , My sftp create files ubuntu username. NOW BOTH CLASHING

0

chown -R ubuntu:psaserv httpdocs <-- i can upload files to httpdocs but Plesk fails but after all uploaded when i make chown -R hostusername:psaserv httpdocs - plesk runs the site.

So every time i have to upload i change host director user to back and forth. its annoying. amazon provided user as ubuntu for ssh keys. Cant change to hostusername.

Anyone have a solution? Also another issue FTP do not work at all. ( it hangs on directory listing. It logs in.). if i can do ftp then this problem solved. Ftp username is hostusername.

Help pls.

alexk
질문됨 2년 전335회 조회
1개 답변
0
수락된 답변

I solved it.

  1. Add ports in firewall. example Custom TCP 21 22 184.65.143.85 SSH TCP 22 Any IPv4 address

Lightsail browser SSH/RDP DNS (TCP) TCP 53 Any IPv4 address

HTTP TCP 80 Any IPv4 address

HTTPS TCP 443 Any IPv4 address

Custom TCP 8443 Any IPv4 address

Custom TCP 8447 Any IPv4 address

Custom TCP 49152 65535 Any IPv4 address

DNS (UDP) UDP 53 Any IPv4 address

========================= 2. Choose explicit FTP over TLS (filezilla) to get directory listing work. Otherwise i am not getting directory listing.

But when ever i change file in SSH i change user after all done chown -R plesk_site_ftp_username:psaserv httpdocs.

alexk
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠