Today let's make SFTP work.
If you have ever tried SFTP with GAiA, it does not work for a very simple reason: it is disabled. To enable it, you have to do the following:
- Create a new user for SFTP access with default bash shell. Alternatively change admin shell to bash. If you do not know how to do that, check chsh command.
- Access Expert mode and open to edit sshd_config file: vi /etc/ssh/sshd_config
- Uncomment the following string:
#Subsystem sftp /usr/libexec/openssh/sftp-server
and save the file. - Run /etc/init.d/sshd restart
Now enjoy SFTP working again.
Update: As Dameon D. Welch-Abernathy tells me on FB, there is SK for that: SK82281
Update 2: After some rather intensive discussion in one of LinkedIn groups, I have to make a clarification. SCP is working on GAiA same way it was with SPLAT. If you are using WinSCP client, it tries SFTP but falls back to SCP if there is a problem. That means, to transfer files with WinSCP client, you only need to perform step 1 from above. With WinSCP it is not so different from SPLAT.
But if you are not using Windows and/or want to run explicitly SFTP and not SCP, you still have to perform the whole procedure.
Update: As Dameon D. Welch-Abernathy tells me on FB, there is SK for that: SK82281
Update 2: After some rather intensive discussion in one of LinkedIn groups, I have to make a clarification. SCP is working on GAiA same way it was with SPLAT. If you are using WinSCP client, it tries SFTP but falls back to SCP if there is a problem. That means, to transfer files with WinSCP client, you only need to perform step 1 from above. With WinSCP it is not so different from SPLAT.
But if you are not using Windows and/or want to run explicitly SFTP and not SCP, you still have to perform the whole procedure.
Hi, unless its a custom command in GAiA (not used it much myself yet), do you mean the "chsh" command, not "shch"?
ReplyDeleteMike
sure, it is a typo, thanks for spotting it
ReplyDeleteAdded some more detail around this on CPShared - see https://www.cpshared.com/forums/showthread.php?t=1412
ReplyDeleteThis help me out getting it running on Gaia. Thank you
ReplyDeleteAndre you are welcome
Delete