Hi
I have installed SFTP and want to configure the SFTP connection to use an SSH key instead of a password.
I’ve added a public key to my server in a .ssh/authorized_keys folder but I am a it confused by the ftp configuration file.
Can anyone help please?
Its pretty standard, but this is what I have:
{
// The tab key will cycle through the settings when first created
// Visit wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "sftp",
"sync_down_on_open": false,
"host": "example.com",
"user": "username",
//"password": "password",
//"port": "22",
"remote_path": "/public_html/",
//"file_permissions": "664",
//"dir_permissions": "775",
//"extra_list_connections": 0,
"connect_timeout": 30,
//"keepalive": 120,
//"ftp_passive_mode": true,
//"ssh_key_file": "~/.ssh/id_rsa",
//"sftp_flags": "-F", "/path/to/ssh_config"],
//"preserve_modification_times": false,
//"remote_time_offset_in_hours": 0,
//"remote_encoding": "utf-8",
//"remote_locale": "C",
}