-
Notifications
You must be signed in to change notification settings - Fork 855
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
Unable To SSH Localhost #2729
Comments
Probably the same problem as the person in #2505. Start up |
I don't think your
|
Thanks to Both of You. |
Can you tell me how you fix it finally? Thanks! @gulshanmudgal |
After experiencing many failures, I finally succeeded! @gulshanmudgal See @issue 3173 |
@gulshanmudgal could you please share with others how you solved it? |
UsePrivilageSeparation -> UsePrivilegeSeparation |
|
Yep, just create directroy "/var/run/sshd" or "/run/sshd" on sshd server, then it's working. |
It'work ! thanks, also remember to restart ssh service , mkdir /var/run/sshd , service ssh restart, and it's work! |
Windows build number : Microsoft Windows [Version 10.0.16299.64]
hadoop@Gulshan:/home/gulshan$ ssh-keygen -t rsa -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):
Created directory '/home/hadoop/.ssh'.
Your identification has been saved in /home/hadoop/.ssh/id_rsa.
Your public key has been saved in /home/hadoop/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:QxD3My4v9G48bIFla6q95HS2QM1pV/56m1kAJkCCfuU hadoop@Gulshan
The key's randomart image is:
+---[RSA 2048]----+
| .+o+ |
| . +.o |
| . o. = o . |
| . ..E+o* + |
| . S+.. o |
| o.+. o |
| ===. o|
| =.**. .=|
| ..++o. .=.|
+----[SHA256]-----+
hadoop@Gulshan:/home/gulshan$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
hadoop@Gulshan:/home/gulshan$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is SHA256:P5ZHB0LmP1xYfo/MjGw7qbyNvLtLan+n7hKWEZhQvfk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
hadoop@localhost's password:
Permission denied, please try again.
hadoop@localhost's password:
Permission denied, please try again.
hadoop@localhost's password:
Received disconnect from 127.0.0.1 port 22:14:
Connection to localhost closed by remote host.
Connection to localhost closed.
i have created ssh key for password less access, but still it's asking for password.
i would like to add that i am running ssh as Admin
(https://github.com/Microsoft/BashOnWindows/blob/master/CONTRIBUTING.md) for assistance.
The text was updated successfully, but these errors were encountered: