# Sftp not working

**URL:** <https://forums.realmacsoftware.com/t/sftp-not-working/46137>\
**Category:** RapidWeaver Classic\
**Created:** [February 1, 2025, 11:10pm UTC](https://forums.realmacsoftware.com/t/sftp-not-working/46137 "2025-02-01T23:10:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfroelicher](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pfroelicher](https://forums.realmacsoftware.com/u/pfroelicher)\
**Post date:** [February 1, 2025, 11:10pm UTC](https://forums.realmacsoftware.com/t/sftp-not-working/46137/1 "2025-02-01T23:10:42Z")

</div>

Hi,  
i am trying to move 3 sites from AWS Linux 2 to AL2023.  
I managed that on the AWS side.  
But the new machine is not accepting sftp access. I can SSH into it, I have updated the known-host file (if that is read by rapidweaver).  
I also get an error when I try to register the private key, saying, unable to safe path to private key. I chmod 600 it, then this works at least. It should be 400 for other programs.  
Any hints?

I just reassociated the “old” instance to the IP.. and there it works.  
So it seems it is some setting on the AWS side that does not work\>  
The two instances run the the same security groups, so same ports open etc.  
Might there be a firewall on one instance which I have to switch off?

Checked again  
[1] Connected to 15.XXXXXXXXXXX (15.XXXXXXXXXX) port 22 (#0)  
[1] SSH MD5 fingerprint: 8fc10fefda9562f3c005d49577866741  
[1] SSH authentication methods available: publickey,gssapi-keyex,gssapi-with-mic  
[1] Using SSH private key file ‘/Users/pcfminihome/Desktop/PaXXr.pem’  
[1] SSH public key authentication failed: Username/PublicKey combination invalid  
[1] Authentication failure  
[1] Closing connection 0  
But connecting to the old instance works like a charm. ? Where do I have to meddle?

---

<div class="post-metadata">

**Author:** ![pfroelicher](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pfroelicher](https://forums.realmacsoftware.com/u/pfroelicher)\
**Post date:** [February 2, 2025, 8:51pm UTC](https://forums.realmacsoftware.com/t/sftp-not-working/46137/2 "2025-02-02T20:51:11Z")

</div>

Well, gave up  
just use  
rsync -avz -e "ssh -i /Users/xxxx/WorkDirectory/xxx.pem " ~/WorkDirectory/LocalPublishEtk/ [ec2-user@ec2-15-228-20-225.sa-east-1.compute.amazonaws.com](mailto:ec2-user@ec2-15-228-20-225.sa-east-1.compute.amazonaws.com):/var/www/html/xxxxx

---

<div class="post-metadata">

**Author:** ![pfroelicher](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pfroelicher](https://forums.realmacsoftware.com/u/pfroelicher)\
**Post date:** [February 3, 2025, 9:56am UTC](https://forums.realmacsoftware.com/t/sftp-not-working/46137/3 "2025-02-03T09:56:18Z")

</div>

Now… after a weekend spent… I have a nice new instance, with AL2023, all new and shiny… with Letsencrypt working, ssl, all 3 sites with their blogs installed, virtualhost etc. all.  
But Alloy does not seem to work with PHP8.1.  
Pheew… you guys blew it…  
I think… lesson learned… It is nice to have citizen developer software… but for mission critical stuff… stay with real companies.
