Connecting to a remote server (SSH/FTP)
Connect to a self-hosted server and get access to its files and terminal.
Before using this feature, you'll need to set up a SSH (SFTP) or FTP server on your computer or server. On a Mac, you can do this by enabling Remote Login and full disk access in the
Sharingsection of System Preferences.
If you are using macOS Ventura, additional configuration might be needed. Please refer to https://github.com/thebaselab/codeapp/issues/715#issuecomment-1368351403
Enabling SSH server on a Mac
Open the remote section in the side bar and enter the server's information. Enable
Remember credentialsto save the credentials. Code App will ask for Face ID or Touch ID authentication when you connect to the server again in the future.
Setting up a new remote
You might also want to use key authenctication instead of password. To do so, start by generate a SSH key by running
ssh-keygenin the terminal.
The remote section will now show a
Show public keybutton. Tap it and copy the public key to your remote server at
~/.ssh/authorized_keys. You can open this file by running
open ~/.ssh/authorized_keysin your remote server's terminal.
Congratulations! You can now access the remote server's files and terminal.
Good to know: Only SFTP server allows terminal access