Skip to content

SSH key scan does not respect REMOTE_PORT #111

@XericZephyr

Description

@XericZephyr

Code:

execSync(`ssh-keyscan -H ${host} >> ${knownHostsPath}`, {

If the port is not default, the ssh-keyscan will fail.

looks like we should do ssh-keyscan -p ${(remotePort || 22)} -H ${host} >> ${knownHostsPath} instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions