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

SSH config is not loaded when sshConfigPath is not set #1151

Closed
sparanoid opened this issue Apr 13, 2018 · 3 comments
Closed

SSH config is not loaded when sshConfigPath is not set #1151

sparanoid opened this issue Apr 13, 2018 · 3 comments

Comments

@sparanoid
Copy link

sparanoid commented Apr 13, 2018

Description

SSH config is not loaded when sshConfigPath is not set in settings.

Steps to Reproduce

  1. Leave sshConfigPath unset.
  2. Use custom hostname like "host": "webserver-la-2" in .ftpconfig.
  3. Try to connect to the server then you will got connection error

Expected behavior:
Supposed to read ~/.ssh/config by default, connection should be made without any issue.

Actual behavior:
Connection error

Reproduces how often:
100%

Versions

$ atom --version
Atom    : 1.25.0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0

Additional Information

N/A

@icetee icetee closed this as completed in aae9610 May 19, 2018
@bearpaw
Copy link

bearpaw commented May 24, 2018

Hi @sparanoid , can you share your .ftpconfig file and ~/.ssh/config file? Thank you very much!

@sparanoid
Copy link
Author

@bearpaw

In ~/.ssh/config:

Host custom-hostname
  HostName __host_ip_here__
  User ec2-user
  IdentityFile ~/.ssh/aws.pem

In .ftpconfig:

{
    "protocol": "sftp",
    "host": "custom-hostname",
    "port": 22,
    "user": "ec2-user",
    "pass": "",
    "promptForPass": false,
    "remote": "/srv/",
    "local": "",
    "agent": "",
    "privatekey": "/path/to/your/key",
    "passphrase": "",
    "hosthash": "",
    "ignorehost": true,
    "connTimeout": 10000,
    "keepalive": 10000,
    "keyboardInteractive": false,
    "watch": [],
    "watchTimeout": 500
}

Actually user field in .ftpconfig is ignored, it can be anything or just left empty since we define it in SSH config.

@icetee
Copy link
Owner

icetee commented May 30, 2018

Settings must specify the path for the configuration. I changed the default value, but only next version included. (Look at this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants