
저는 몇 년 동안 Sublime Text에서 SFTP 패키지를 사용하여 AWS EC2 인스턴스에 연결해 왔지만 아무런 문제가 없었습니다. 오늘 새 인스턴스를 생성했는데 어떤 이유로 연결하는 데 문제가 있습니다.
다른 인스턴스에 연결하려고 하면 연결이 작동합니다. PuTTY를 사용하여 연결을 시도하면 연결도 작동합니다. 문제가 발생하는 것은 Sublime Text를 통해 연결하려고 할 때만입니다.
sftp-config.json:
{
"type": "sftp",
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": true,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "00.000.000.000",
"user": "<Username>",
"port": "22",
"remote_path": "/var/www/html/",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
"file_permissions": "755",
"dir_permissions": "755",
"connect_timeout": 30,
"ssh_key_file": "C:/AWS Key Pairs.ppk",
}
숭고한 콘솔:
Connecting to SFTP server "00.000.000.000" as "<Username>" ........... failure (Connection timeout)
sublime_sftp_debug.txt:
2022-06-01 00:12:19, SFTP Read:
Using username "<Username>".
Server refused our key
FATAL ERROR: No supported authentication methods available (server sent: publickey)
원격 서버의 auth.log:
Jun 1 04:12:18 ip-000-00-00-000 sshd[59492]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Jun 1 04:12:18 ip-000-00-00-000 sshd[59492]: Connection closed by authenticating user <Username> 00.00.000.00 port 49161 [preauth]
이 문제가 발생하는 이유를 아는 사람이 있습니까? 이 오류 이전에는 PuTTYgen에서 생성된 키 버전과 관련된 또 다른 오류가 나타났습니다. 개인 키를 생성할 때 다른 구성일 수도 있지만 이미 여러 다른 튜토리얼을 따라해 보았지만 아무 것도 작동하지 않았습니다.
답변1
귀하의 서버가 rsa-sha2를 요구하도록 업데이트된 것 같습니다. 그리고 Sublime(또는 귀하의 버전)은 아직 이를 지원하지 않습니다.
최신 버전의 Sublime이 있는지 확인하세요.
Sublime이 아직 rsa-sha2를 지원하지 않는 것으로 밝혀 PubkeyAcceptedAlgorithms +ssh-rsa
지면 sshd_config
.