-
Notifications
You must be signed in to change notification settings - Fork 14
Enable RDP and SSH
lethanhtung01011980 edited this page Apr 7, 2020
·
8 revisions
Ref:
Windows 2003+
- Enable Remote Desktop:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
Windows 2012
- (MUST) Enable Remote Desktop:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
- (OPTIONAL) Enable Remote Desktop (without Network Authentication) :
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
- Turn off firewall:
netsh advfirewall set allprofiles state off
- Powershell to enable RDP:
Ps > Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
- Powershell to disable RDP Network authentication:
PS > Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -value 0
- systemctl ssh enable
- service enable ssh
- May need to change sshd_config to allow root access https://github.com/lethanhtung01011980/Notes/wiki/Kali-Common-commands#ssh