![]() # The SSH service should start automatically when Windows is rebooted. ![]() To review, open the file in an editor that reveals hidden Unicode characters. ![]() Hence the entry in profile.json will be: The command launches bash.exe from MSYS2 environment with -interactive and -login options. venv.fish This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. #!/bin/sh # msys2-sshd-setup.sh - configure sshd on MSYS2 and run it as a Windows service # Replaces ssh-host-config # Adapted from by Sam Hocevar # Adapted from by David Macek # Prerequisites: # - a 64-bit installation of MSYS2 itself: # - some packages: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights # Gotchas: # - the log file will be /var/log/msys2_sshd.log # - if you get error “sshd: fatal: seteuid XXX : No such device or address” # in the logs, try “passwd -R” (with admin privileges) # - if you get error “chown(/dev/pty1, XXX, YYY) failed: Invalid argument” # in the logs, make sure your account and group names are detectable (see # `id`) issues are often caused by having /etc/ " \ > /etc/passwdįi # Finally, register service with cygrunsrv and start it #Ĭygrunsrv -I msys2_sshd -d "MSYS2 sshd" -p /usr/bin/sshd.exe -a "-D -e" -y tcpip Assuming MSYS2 is installed in C:msys2 folder, the commandline entry for Windows Terminal will be C:msys2usrbinbash.exe -i -l. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |