I have logged into windows using Microsoft account. But I am not able to ssh into it.
I have setup the OpenSSH Server and stuff on Windows 11
When I run whoami, the output is adam-aadam -apple. Notice the space there.
And running [System.Security.Principal.WindowsIdentity]::GetCurrent().Name gives adam -apple
I tried running ssh 'adam-aadam -apple'@<ip>,
it threw an error ssh: Could not resolve hostname adam-a\adam -apple: No such host is known.
Machine Name: adam-a
Is there a way I can change the username by removing the space to adam-apple?