常见问题
Permission denied
> Run easingthemes/ssh-deploy@main
[DIR] Creating /home/runner/.ssh dir in workspace root
✅ [DIR] dir created.
[FILE] writing /home/runner/.ssh/known_hosts file ... 0
✅ [SSH] known_hosts file ensured /home/runner/.ssh
✅ [DIR] /home/runner/.ssh dir exist
[FILE] writing /home/runner/.ssh/deploy_key_root_1743137849750 file ... 3244
✅ [SSH] key added to `.ssh` dir /home/runner/.ssh deploy_key_root_1743137849750
rsync version 3.2.7 protocol version 31
Copyright (C) 1996-20*** by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,socketpairs, symlinks, symtimes, hardlinks, hardlink-specials,hardlink-symlinks, IPv6, atimes, batchfiles, inplace, append, ACLs,xattrs, optional secluded-args, iconv, prealloc, stop-at, no crtimes
Optimizations:SIMD-roll, no asm-roll, openssl-crypto, no asm-MD5
Checksum list:xxh128 xxh3 xxh64 (xxhash) md5 md4 sha1 none
Compress list:zstd lz4 zlibx zlib none
Daemon auth list:sha512 sha256 sha1 md5 md4rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
✅️ [CLI] Rsync exists
[Rsync] Starting Rsync Action: /home/runner/work/my-website/my-website/dist/ to root@***:/home/apps-root/my-website
[Rsync] excluding folders
Warning: Permanently added '***' (ED25519) to the list of known hosts.Permission denied, please try again.Permission denied, please try again.root@***: Permission denied (gssapi-keyex,gssapi-with-mic,password).rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: unexplained error (code 255) at io.c(232) [sender=3.2.7]❌ [Rsync] error:
Error: rsync exited with code 255at ChildProcess.<anonymous> (/home/runner/work/_actions/easingthemes/ssh-deploy/main/dist/index.js:2:2603)at ChildProcess.emit (node:events:524:28)at ChildProcess._handle.onexit (node:internal/child_process:293:12) {code: 255
}
❌ [Rsync] stderr:
Warning: Permanently added '***' (ED25519) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
root@***: Permission denied (gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(232) [sender=3.2.7]❌️ [Rsync] stdout: ❌ [Rsync] command:
================================================================
================================================================
rsync /home/runner/work/my-website/my-website/dist/ root@***:/home/apps-root/my-website --rsh "ssh -p *** -i /home/runner/.ssh/deploy_key_root_1743137849750 -o StrictHostKeyChecking=no" --recursive --exclude= -avzr --delete --mkpath
Error: R] rsync exited with code 255Warning: Permanently added '***' (ED25519) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
root@***: Permission denied (gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(232) [sender=3.2.7]