60-Enable SSH On Kali Linux
60-Enable SSH On Kali Linux
Turning your Kali Linux into an SSH server allows you to remotely access and manage your
system securely over the network. Secure Shell (SSH) is a protocol that provides a secure way to
access a remote computer.
It allows you to remotely log in to a system and execute commands as if you were sitting at the
console. By default, SSH is not enabled on Kali Linux.
Commands Description
$ apt list openssh-server Verify openssh server package is install
$sudo apt update Before install update
$sudo apt install openssh-server Installing openssh-server in kali Linux
$sudo systemctl start ssh Start the SSH Service
$sudo systemctl enable ssh Enable SSH to Start on Boot
$sudo systemctl status ssh Verify SSH is Running
$sudo ufw allow ssh Configure Firewall to allow ssh traffic
$sudo ufw enable
$sudo vi /etc/ssh/sshd_config Customize the SSH server configuration
$sudo systemctl restart ssh Restart the SSH service for the changes
$ssh username@server_ip_address Accessing the SSH Server
$ssh [email protected]