codefori / codefori/vscode-ibmi

Generate SSH key for user

Open
#475 14 comments 0 reactions 0 assignees View on GitHub
idea
Dominant language
TypeScript
Stars
418
Forks
160
Avg merge
4d 14h
Merged PRs (30d)
13

Description

The chances of us dropping credentials right now are very low - I think if we did that, we'd need to add a way to make it easy to generate SSH keys and get them uploaded to IBM i automatically (ssh-copy-id?)

I think what we should do in the meantime, is absolutely warn the user when they log in with a password.

> You should log in using an SSH private key instead. Would you like to set one up now? [Yes] [Choose existing key]

Then the yes button could generate a key, upload it to the system, update their connection settings to point to the key, and then disconnect. What do you think of that?

Some things to consider:

* Generating an SSH key on Linux and mac is easy as chips.
* Generating an SSH key on Windows doesn't sound too easy. I believe only newer versions of Windows ship with `ssh-keygen`.
* Can `ssh2` generate a key?

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by tracing the extension's password-based SSH login and checking whether ssh2 supports key generation, then define the warning, platform behavior, upload, and connection-setting update as completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
authentication, devtools, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.