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
Sharing
section 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 credentials
to 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-keygen
in the terminal.The remote section will now show a
Show public key
button. 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_keys
in 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

Last modified 4mo ago