Posts

How to reset Windows Server Password

In order to reset Running Windows Server 2012/2016/2019 password you need to follow below mentioned necessary steps:

  • Insert Windows Server USB/ISO/DVD to server
  • DC1 : Reset Administrator’s password
  • You forgot password and logon fail
  • Boot to DVD – Next – Repair your computer – Troubleshoot – Command Prompt, type :
    • X:\Sources D: # Maybe C:
    • D:\Dir # Check folders
    • D:\cd Windows
    • D:\Windows\cd System32
    • D:\Windows\System32\ ren utilman.exe utilman.exe.old
    • D:\Windows\System32\ copy cmd.exe utilman.exe
    • D:\Windows\System32\ Shutdown -r -t 0 # Restart
    • Click ‘Ease of access’
    • C:\Windows\System32\ net user Administrator abc@123 # Set new password is abc@123
    • Logon using new password === OK

How to configure SSH Server/Client

To configure SSH Server to manage a server from the remote computer (Linux & Windows machine).

Step 1: Configure SSH Server

Edit the sshd_config file and made the following changes:

# vi /etc/ssh/sshd_config
# line 42: uncomment and change ( prohibit root login remotely )

PermitRootLogin no
# line 65: uncomment

PermitEmptyPasswords no
PasswordAuthentication yes

Step 2: Restart SSH Server

Now restart the sshd service.

# /etc/rc.d/init.d/sshd restart

Step 3: Configure SSH Client on Linux Machine

In order to configure SSH client on Linux Machine Install SSH Client.

# yum -y install openssh-clients

To connect with SSH Server authenticate with username and password using the following command:

# ssh user@tecdistro-server

The authenticity of host 'tecdistro-server ()' can't be established.
ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:70:33:e9.
Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'tecdistro-server' (ECDSA) to the list of known hosts.
user@tecdistro-server's password:
[user@tecdistro ~]$

Step 4: Configure SSH Client on Windows Machine

To configure SSH client on Windows machine install third party tools like “Putty, OpenSSH, Bitvise etc”.
Enter Server IP and port(By default port is 22) and Click on “Open”.
Putty
Enter server credentials(Username and Password) to authenticate:

login as: user
user@172.31.28.154's password:
[user@tecdistro~]$