Dear list,

I am completely new both to this list and msys, it looks like a great project! 
;)

I would like to set up an ssh daemon in msys. I tried simply installing the 
openssh package and run sshd.

First I saw there are two ssh binaries

/bin/sshd
/usr/bin/sshd

Is that normal, which one should I use?

Then I picked one randomly and got in return:

/usr/bin/sshd
Privilege separation user sshd does not exist

I followed the first recommendation in 

http://oracleonlinux-n.blogspot.co.uk/2012/11/starting-sshd-privilege-separation-user.html

and could start sshd, yea! (using sshd as name for the privileged account)

But I couldn’t log in from the remote host. It would prompt for a password for 
my username, and none I provided allowed to log in. The username for which the 
server prompted a password for must be the username of my client, as I tried to 
open the connection with

ssh ip-address

only.

Doing

ssh winusername@ip-address

made no difference.


I also tried storing the public ssh key on the client in a file 
“~/.ssh/authorized_keys” on the msys host - no success either...

Has anybody got this working? I am using latest msys2 and just installed 
openssh a few hours ago.

Host is Win 8.1 64 bit with latest msys
Client is Macbook pro 10.10

Thanks for any help!

Rainer

PS: this is the output from doing 

ssh -v 10.0.1.27

on the client:

clientPrompt:~ username$ ssh -v 10.0.1.28
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to 10.0.1.28 [10.0.1.28] port 22.
debug1: Connection established.
debug1: identity file /Users/username/.ssh/id_rsa type 1
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: identity file /Users/username/.ssh/id_dsa type -1
debug1: identity file /Users/username/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
debug1: match: OpenSSH_6.7 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 33:0e:34:7a:ec:38:60:3e:5d:77:46:c8:63:44:ce:a1
debug1: Host '10.0.1.28' is known and matches the RSA host key.
debug1: Found key in /Users/username/.ssh/known_hosts:10
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive,hostbased
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/username/.ssh/id_rsa
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive,hostbased
debug1: Offering RSA public key: /Users/username/.ssh/id_rsa
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive,hostbased
debug1: Trying private key: /Users/username/.ssh/id_dsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive,hostbased
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive,hostbased
debug1: Next authentication method: password
[email protected]'s password:
...



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to