오랫동안 리더,첫번째 질문이-asker.
나의 지침에 따라 이 대답:
할 수 있는 방법 SSH 로"Bash 에서 우분투가 Windows10"?
나는'm 하 SSH 에 퍼티를 윈도에서 동일한 컴퓨터에 있습니다. 번 포트를 사용하여 22,과 일치하는 내 config 파일에 있습니다. 모 127.0.0.1 및 127.0.1.1. 그러나 나는'm 여전히"액세스 거부":
궁극적으로 I'm 를 설정하기를 바라고 Visual Studio 원격을 구축,그러나 나는've 지금까지 할 수 없으로 원격에서 모두. 다음 단계는 무엇인 해야 하나요?
프로세스커 쇼 이를 위해 포트는 22 일(이 무엇을 의미하는지 확실하지 않은):
여기에는 내용의/etc/ssh/sshd_config:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation no
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin no
AllowUsers basel
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
변경 22 포트를 다른 하나는 같은 2222,에서 파일을/etc/ssh/sshd_config
,그리고 다시 시작 ssh 서비스에 의해 commondsudo 서비스 ssh--전체를 다시 시작
,당신은 성공적으로 로그인합니다.하지만 나는't 알는 이유입니다.
또한 시도로 사용한 원격 gdb 서버 visual studio VisualGDB,그것은 작동하지 않습니다. VisualGDB 그것을 지원하는대로 다음 버전에서의 공식적인 웹사이트에 보여줍니다.링크https://sysprogs.com/w/forums/topic/visualgdb-with-windows-10-anniversary-update-linux-support/#post-9274
포트는 22 때문에 작동하지 않는 윈도우 내장된 SSH 서버입니다.
Windows10 은 SSH server,그리고 그것은 것 중 하나가 필요하다 장애인용 또는 포트에 사용되는 SSH 에 WSL 야 합니다 변경되었습니다. 나는 선택을 할 후기와 포트를 사용 2200WSL SSH.
로그인할 때 사용하여 Windows Microsoft 계정 비밀번호,아 WSL 리눅스 사용자 비밀번호를 입력합니다. 로그인할 수 있으로 윈도우 홈디렉토리 실행 cmd.exe. 입력한 명령/windows/system32/bash.exe ~--로그인이
로그인 WSL 홈 디렉토리에 실행 당신의.프로필
.