[SOLVED] What is my SSH user password in Windows 10?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Then, I tried to login from my laptop (which is on the same network and connected to the same physical switch as the Windows 10 machine) with the command:
Code:
ssh -p 22 rok@xxx.xxx.xxx.225
where rok is the name of my user's folder in Windows 10 and xxx.xxx.xxx.225 is the IP of the Windows 10 machine (the IP of the laptop from which I try logging in is xxx.xxx.xxx.236).
However, on the Windows 10 machine I don't use a local account but rather login with my Microsoft account (i.e. rokyo@live.com).
Now, when I try to SSH into the Windows 10 machine, which password and which username do I use? Is my username for SSH also 'rokyo@live.com' (with the according password) OR is it 'rok' (like my user's folder in Windows 10) and if yes which password does it have?
I actually tried logging in via:
Code:
ssh -p 22 rok@xxx.xxx.xxx.225
using the password of my Microsoft account and via:
Code:
ssh -p 22 rokyo@live.com@xxx.xxx.xxx.225
using the password of my Microsoft account but both just said:
Quote:
Permission denied, please try again.
So, what do I actually have to use as username/password for SSHing into Windows 10??
is probably syntactically incorrect. Use -l <user> instead.
I don't know what will windows accept as username, but I would try: rokyo, rokyo@live.com.
And if nothing works I would also try to create a local account (just to check).
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by pan64
is probably syntactically incorrect. Use -l <user> instead.
I don't know what will windows accept as username, but I would try: rokyo, rokyo@live.com.
And if nothing works I would also try to create a local account (just to check).
First of all: Thanks for the quick reply!
I just tried all those combinations and none worked.
Also, I switched from logging in with MS account to local account on the Windows 10 machine and explicitly set username and password as 'rokyo' and 'password' (not the real password, of course ).
When trying to SSH into the machine, connection still doesn't happen. No matter if I use
Code:
ssh -p 22 -l rokyo xxx.xxx.xxx.225
or
Code:
ssh -p 22 rokyo@xxx.xxx.xxx.225
with 'password'...
I think the SSH server on the Windows machine might not be configured and/or working correctly?
The fork of OpenSSH to Windows is not guaranteed to work. There are many pieces that have not been ported yet and probably quite a few that won't or can't be ported. But if you are still insisting in running Vist10 on bare metal that machine, then you would be better served asking at one of the many Windows forums.
If you really are interested in getting a working SSH server on that hardware, then back up your data, wipe the hard drive, install GNU/Linux with OpenSSH-server, and then put Vista10 into a virtual machine, such as VirtualBox or Qemu, and restore your Windows data into the virtual machine. If you make an extra disc partition you should, in theory, be able to get the Vista10 virtual machine guest to access that partition on the host from the virtual machine. Then your virtual machine's host system would also be able to access that same partition, even when you connect via SSH.
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by pan64
yes, probably, or it is a firewall related issue.
Could be! I just realized that I cannot even ping the Windows 10 machine from my laptop...
But my Windows firewall rules explicitly state that port 22 is open for business: https://imgur.com/FEFOfXi
Also, when I try to ping the Windows 10 machine, I get nothing:
Code:
>ping xxx.xxx.xxx.225
>PING xxx.xxx.xxx.225 (xxx.xxx.xxx.225) 56(84) bytes of data...
It just stays like that no matter how long I leave it to run, BUT: when I leave the ping command running and then reboot the Windows 10 machine, the ping response changes to:
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by Turbocapitalist
The fork of OpenSSH to Windows is not guaranteed to work. There are many pieces that have not been ported yet and probably quite a few that won't or can't be ported. But if you are still insisting in running Vist10 on bare metal that machine, then you would be better served asking at one of the many Windows forums.
If you really are interested in getting a working SSH server on that hardware, then back up your data, wipe the hard drive, install GNU/Linux with OpenSSH-server, and then put Vista10 into a virtual machine, such as VirtualBox or Qemu, and restore your Windows data into the virtual machine. If you make an extra disc partition you should, in theory, be able to get the Vista10 virtual machine guest to access that partition on the host from the virtual machine. Then your virtual machine's host system would also be able to access that same partition, even when you connect via SSH.
I would actually love to do that, but it's a work machine and my boss won't allow it to run Linux... :-/
However, he still wants us to be able to remote SSH from home into our work machines... which seems impossible with the current state of the Windows 10 SSH implementation?
I would actually love to do that, but it's a work machine and my boss won't allow it to run Linux... :-/
No problem. There's also FreeBSD and OpenBSD. If you try FreeBSD, then the distro TrueOS does most of the configuration of desktop niceties for you. Because TrueOS is FreeBSD it is very simple to ensure a working SSH server.
Otherwise, you'll need to repair your boss' lack of knowledge.
In the mean time, I hope you are billing him sufficiently for his ridiculous request for networked software on Vista10 and letting him know he is asking you to try to squeeze blood from a turnip. Or, since this is Vista10 in question, from a turd.
Again a Windows forum might be the best place to ask about Windows problems.
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by Turbocapitalist
No problem. There's also FreeBSD and OpenBSD. If you try FreeBSD, then the distro TrueOS does most of the configuration of desktop niceties for you. Because TrueOS is FreeBSD it is very simple to ensure a working SSH server.
Otherwise, you'll need to repair your boss' lack of knowledge.
In the mean time, I hope you are billing him sufficiently for his ridiculous request for networked software on Vista10 and letting him know he is asking you to try to squeeze blood from a turnip. Or, since this is Vista10 in question, from a turd.
Again a Windows forum might be the best place to ask about Windows problems.
I'm sure when I explain to my boss that SSH won't work, he'll make me install Teamviewer or something like that...
Maybe I should just bring a private computer (with Linux on it) to work and SSH into that.
If I remember well you can install cygwin onto windows and use its ssh server, do not need to drop win10.
about post #6, it looks like a firewall or something similar (probably and antivirus sw?)
you can try to reach port by: telnet host port
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by pan64
If I remember well you can install cygwin onto windows and use its ssh server, do not need to drop win10.
about post #6, it looks like a firewall or something similar (probably and antivirus sw?)
you can try to reach port by: telnet host port
Using
Code:
telnet xxx.xxx.xxx.225 22
gets me:
Code:
>Trying xxx.xxx.xxx.225...
>Connected to xxx.xxx.xxx.225.
>Escape character is '^]'.
>SSH-2.0-MS_1.100
and a blinking cursor under that last line. When I type anything at that point (including just pressing ENTER) it goes:
However, he still wants us to be able to remote SSH from home into our work machines... which seems impossible with the current state of the Windows 10 SSH implementation?
I would explain your difficulties to him and ask your company's IT Department to sort the issue out for you. This is their stuff and their responsibility, legal and otherwise. So, "put the monkey on their back, where it properly belongs."
Furthermore, I would recommend that your company use OpenVPN with tls-auth, not ssh, as your means of securing access to the company machines. Individual laptops are issued unique digital certificates, any one of which can be individually revoked. And the company's OpenVPN server cannot be detected, as I describe at length in my blog here. It is quite-literally a secret door.
You very quickly get used to: "Number of unauthorized access attempts: Zero."
Users simply "open the tunnel," giving them access to other things including Microsoft networking, remote logins and so on. Effectively, when the tunnel is open, "they are present on the company's internal network." They don't have to consider that OpenVPN is anything more than just another network router. But everything that passes along the Internet wire is very securely encrypted, and there's no way to get to the other side except through the tunnel. Should any particular laptop be stolen, its credentials can be made to "drop dead" without affecting anyone else's. (Password-encryption of the key materials is an optional, additional feature, good for "keeping the honest people out.")
Last edited by sundialsvcs; 03-21-2018 at 09:15 AM.
Distribution: Ubuntu Mate 18.04 (production), Arch rolling (tinkering)
Posts: 102
Original Poster
Rep:
Quote:
Originally Posted by sundialsvcs
I would explain your difficulties to him and ask your company's IT Department to sort the issue out for you. This is their stuff and their responsibility, legal and otherwise. So, "put the monkey on their back, where it properly belongs."
Furthermore, I would recommend that your company use OpenVPN with tls-auth, not ssh, as your means of securing access to the company machines. Individual laptops are issued unique digital certificates, any one of which can be individually revoked. And the company's OpenVPN server cannot be detected, as I describe at length in my blog here. It is quite-literally a secret door.
You very quickly get used to: "Number of unauthorized access attempts: Zero."
Users simply "open the tunnel," giving them access to other things including Microsoft networking, remote logins and so on. Effectively, when the tunnel is open, "they are present on the company's internal network." They don't have to consider that OpenVPN is anything more than just another network router. But everything that passes along the Internet wire is very securely encrypted, and there's no way to get to the other side except through the tunnel. Should any particular laptop be stolen, its credentials can be made to "drop dead" without affecting anyone else's. (Password-encryption of the key materials is an optional, additional feature, good for "keeping the honest people out.")
Thanks for the info! I'll check out the blog when I get back home!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.