Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vm_ssh): support custom identity-file in 'vm ssh' command #522

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

squizzi
Copy link
Contributor

@squizzi squizzi commented Mar 24, 2025

Add -i, --identity-file support to the vm ssh command to allow a user to specify a custom identity file when using replicated vm ssh.

Testing

# I get a password because it's not the right key
./bin/replicated vm ssh -i ~/.ssh/a-key-i-know-wont-work
✔ friendly_kalam (running)
The authenticity of host '[111.222.333.444]:42187 ([111.222.333.444]:42187)' can't be established.
ED25519 key fingerprint is SHA256:cyQAAVxafABejTt5GGt94nTChXLPiC23kFEzLQBIl6s.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[111.222.333.444]:42187' (ED25519) to the list of known hosts.
[email protected]'s password:


# My actual key lets me in
/bin/replicated vm ssh -i ~/.ssh/id_ed25519
✔ friendly_kalam (running)
$ 

./bin/replicated vm ssh -i ~/not-real
Error: identity file does not exist or is not accessible: stat /Users/squizzi/not-real: no such file or directory

@squizzi squizzi merged commit 014845a into main Mar 27, 2025
5 checks passed
@squizzi squizzi deleted the squizzi/ssh-identify-file branch March 27, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants