{"action":"created","issue":{"url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/116","labels_url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/116/comments","events_url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/116/events","html_url":"https://github.com/Lejdborg/NMSSH/issues/116","id":58511717,"number":116,"title":"authenticate with default user config/environment ?","user":{"login":"nicolaslauquin","id":566880,"avatar_url":"https://avatars.githubusercontent.com/u/566880?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaslauquin","html_url":"https://github.com/nicolaslauquin","followers_url":"https://api.github.com/users/nicolaslauquin/followers","following_url":"https://api.github.com/users/nicolaslauquin/following{/other_user}","gists_url":"https://api.github.com/users/nicolaslauquin/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaslauquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaslauquin/subscriptions","organizations_url":"https://api.github.com/users/nicolaslauquin/orgs","repos_url":"https://api.github.com/users/nicolaslauquin/repos","events_url":"https://api.github.com/users/nicolaslauquin/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaslauquin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T18:05:42Z","updated_at":"2015-02-23T00:16:30Z","closed_at":null,"body":"I used with success the ```authenticateByPrivateKey:privateKey:andPassword``` but is there a way to load the default user configuration without providing privateKey and password, like when a user open its terminal and you enter ssh user@host ?\r\n\r\nMy goal would be to test the connection first with the default user ssh key and if not available prompt the user for password. Maybe I missed something in the api ? If it is not the scope of NMSSH, do you have an idea how to address that point ?\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/comments/75474576","html_url":"https://github.com/Lejdborg/NMSSH/issues/116#issuecomment-75474576","issue_url":"https://api.github.com/repos/Lejdborg/NMSSH/issues/116","id":75474576,"user":{"login":"bhr","id":557660,"avatar_url":"https://avatars.githubusercontent.com/u/557660?v=3","gravatar_id":"","url":"https://api.github.com/users/bhr","html_url":"https://github.com/bhr","followers_url":"https://api.github.com/users/bhr/followers","following_url":"https://api.github.com/users/bhr/following{/other_user}","gists_url":"https://api.github.com/users/bhr/gists{/gist_id}","starred_url":"https://api.github.com/users/bhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhr/subscriptions","organizations_url":"https://api.github.com/users/bhr/orgs","repos_url":"https://api.github.com/users/bhr/repos","events_url":"https://api.github.com/users/bhr/events{/privacy}","received_events_url":"https://api.github.com/users/bhr/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T00:16:30Z","updated_at":"2015-02-23T00:16:30Z","body":"AFAIK there is no general default user and password. Depending on the host, there may be a default configuration you can try out first by calling `authenticateByPrivateKey:privateKey:andPassword` and look if authentication succeeds. If not, you can ask for username and password."}}