0% found this document useful (0 votes)
90 views24 pages

SSH SSL

The document contains a series of command line interactions on a Kali Linux system. It includes the use of 'ifconfig' to check network configurations, 'apt update' to update package lists, and navigation through the '/etc' directory to list configuration files. The output shows various system configurations and available packages for upgrade.

Uploaded by

projectalpha984
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views24 pages

SSH SSL

The document contains a series of command line interactions on a Kali Linux system. It includes the use of 'ifconfig' to check network configurations, 'apt update' to update package lists, and navigation through the '/etc' directory to list configuration files. The output shows various system configurations and available packages for upgrade.

Uploaded by

projectalpha984
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 24

┌──(kali㉿kali)-[~]

└─$ ipconfig
Command 'ipconfig' not found, did you mean:
command 'ifconfig' from deb net-tools
command 'iconfig' from deb ipmiutil
command 'hipconfig' from deb hipcc
command 'iwconfig' from deb wireless-tools
Try: sudo apt install <deb name>

┌──(kali㉿kali)-[~]
└─$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::2e12:7de2:f33e:6b29 prefixlen 64 scopeid 0x20<link>
inet6 fd00::ed9:e393:9218:d031 prefixlen 64 scopeid 0x0<global>
ether 08:00:27:6e:13:6e txqueuelen 1000 (Ethernet)
RX packets 1964 bytes 2284025 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 748 bytes 96279 (94.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 480 (480.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 480 (480.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

┌──(kali㉿kali)-[~]
└─$ sudo apt update
[sudo] password for kali:
Get:1 http://kali.download/kali kali-rolling InRelease [41.5 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 Packages [21.0 MB]
Get:3 http://kali.download/kali kali-rolling/main amd64 Contents (deb) [51.6 MB]
Get:4 http://kali.download/kali kali-rolling/contrib amd64 Packages [121 kB]
Get:5 http://kali.download/kali kali-rolling/contrib amd64 Contents (deb) [328 kB]
Get:6 http://kali.download/kali kali-rolling/non-free amd64 Packages [204 kB]
Get:7 http://kali.download/kali kali-rolling/non-free amd64 Contents (deb) [914 kB]
Get:8 http://kali.download/kali kali-rolling/non-free-firmware amd64 Packages [10.6
kB]
Get:9 http://kali.download/kali kali-rolling/non-free-firmware amd64 Contents (deb)
[24.3 kB]
Fetched 74.2 MB in 30s (2,435 kB/s)
1698 packages can be upgraded. Run 'apt list --upgradable' to see them.

┌──(kali㉿kali)-[~]
└─$ sudo apt update
Completing external command
\[
1password2john
2to3-2.7
7z
7z2john
7za
7zr
411toppm
a2disconf
a2dismod
a2dissite
a2enconf
a2enmod
a2ensite
a2query
aa-enabled
aa-exec
aa-features-abi
aa-remove-unknown
aa-status
aa-teardown
ab
accessdb
activate-global-python-argcomplete
acyclic
┌──(kali㉿kali)-[~]
└─$ cd /

┌──(kali㉿kali)-[/]
└─$ cd /et
cd: no such file or directory: /et

┌──(kali㉿kali)-[/]
└─$ cd /etc/
Completing directory
alsa/ mysql/
alternatives/ netsniff-ng/
apache2/ network/
apparmor/ NetworkManager/
apparmor.d/ nfs.conf.d/
apt/ nginx/
arp-scan/ ntpsec/
avahi/ ODBCDataSources/
bash_completion.d/ openal/
binfmt.d/ OpenCL/
bluetooth/ openni2/
ca-certificates/ opensc/
chatscripts/ openvas/
chromium/ openvpn/
chromium.d/ opt/
cifs-utils/ pam.d/
cloud/ perl/
colord/ php/
console-setup/ plymouth/
cracklib/ polkit-1/
credstore/ postgresql/
credstore.encrypted/ postgresql-common/
cron.d/ powershell-empire/
cron.daily/ ppp/
cron.hourly/ profile.d/
cron.monthly/ pulse/
cron.weekly/ python2.7/
cron.yearly/ python3/
cryptsetup-initramfs/ python3.12/
cryptsetup-nuke-password/ radcli/
cupshelpers/ rc0.d/
dbus-1/ rc1.d/
dconf/ rc2.d/
default/ rc3.d/
dhcp/ rc4.d/
dictionaries-common/ rc5.d/
doc-base/ rc6.d/
dpkg/ rcS.d/
eac/ reader.conf.d/
emacs/ redis/
environment.d/ request-key.d/
ettercap/ responder/
firebird/ runit/
firefox-esr/ samba/
fonts/ sane.d/
freetds/ scalpel/
geoclue/ sddm.conf.d/
ghostscript/ security/
glvnd/ selinux/
gnome-system-tools/ sensors.d/
gophish/ sgml/
┌──(kali㉿kali)-[/]
└─$ cd /etc/
Completing directory
alsa/ mysql/
alternatives/ netsniff-ng/
apache2/ network/
apparmor/ NetworkManager/
apparmor.d/ nfs.conf.d/
apt/ nginx/
arp-scan/ ntpsec/
avahi/ ODBCDataSources/
bash_completion.d/ openal/
binfmt.d/ OpenCL/
bluetooth/ openni2/
ca-certificates/ opensc/
chatscripts/ openvas/
chromium/ openvpn/
chromium.d/ opt/
cifs-utils/ pam.d/
cloud/ perl/
colord/ php/
console-setup/ plymouth/
cracklib/ polkit-1/
credstore/ postgresql/
credstore.encrypted/ postgresql-common/
cron.d/ powershell-empire/
cron.daily/ ppp/
cron.hourly/ profile.d/
cron.monthly/ pulse/
cron.weekly/ python2.7/
cron.yearly/ python3/
cryptsetup-initramfs/ python3.12/
cryptsetup-nuke-password/ radcli/
cupshelpers/ rc0.d/
dbus-1/ rc1.d/
dconf/ rc2.d/
default/ rc3.d/
dhcp/ rc4.d/
dictionaries-common/ rc5.d/
doc-base/ rc6.d/
dpkg/ rcS.d/
eac/ reader.conf.d/
emacs/ redis/
environment.d/ request-key.d/
ettercap/ responder/
firebird/ runit/
firefox-esr/ samba/
fonts/ sane.d/
freetds/ scalpel/
geoclue/ sddm.conf.d/
ghostscript/ security/
glvnd/ selinux/
gnome-system-tools/ sensors.d/
gophish/ sgml/
┌──(kali㉿kali)-[/]
└─$ cd /etc/

┌──(kali㉿kali)-[/etc]
└─$ ls
adduser.conf ipsec.secrets python3.12
alsa issue radcli
alternatives issue.net rc0.d
apache2 java-21-openjdk rc1.d
apparmor java-23-openjdk rc2.d
apparmor.d john rc3.d
apt kali-menu rc4.d
arp-scan kernel rc5.d
avahi keyutils rc6.d
bash.bashrc kismet rcS.d
bash_completion ldap reader.conf.d
bash_completion.d ld.so.cache rearj.cfg
bindresvport.blacklist ld.so.conf redis
binfmt.d ld.so.conf.d redsocks.conf
bluetooth legion.conf request-key.conf
ca-certificates letsencrypt request-key.d
ca-certificates.conf libao.conf resolv.conf
chatscripts libaudit.conf responder
chromium libblockdev rmt
chromium.d libccid_Info.plist rpc
cifs-utils libnl-3 runit
cloud libpaper.d samba
colord lightdm sane.d
console-setup lighttpd scalpel
cracklib locale.alias screenrc
credstore locale.conf sddm.conf.d
credstore.encrypted locale.gen searchsploit_rc
cron.d localtime security
cron.daily logcheck selinux
cron.hourly login.defs sensors3.conf
cron.monthly logrotate.conf sensors.d
crontab logrotate.d services
cron.weekly macchanger sgml
cron.yearly machine-id shadow
cryptsetup-initramfs magic shadow-
cryptsetup-nuke-password magic.mime shells
crypttab mailcap skel
cupshelpers mailcap.order smartd.conf
dbus-1 manpath.config smartmontools
dconf matplotlibrc smi.conf
debconf.conf mime.types snmp
debian_version minicom speech-dispatcher
default miredo sqlmap
deluser.conf miredo.conf ssh
dhcp mke2fs.conf ssl
dhcpcd.conf ModemManager sslsplit
dictionaries-common modprobe.d strongswan.conf
dns2tcpd.conf modules strongswan.d
doc-base modules-load.d stunnel
dpkg mosquitto subgid
e2scrub.conf motd subgid-
eac mtab subuid
emacs mysql subuid-
environment nanorc subversion
environment.d netconfig sudo.conf
ethertypes netsniff-ng sudoers
ettercap network sudoers.d
firebird NetworkManager sudo_logsrvd.conf
firefox-esr networks supercat
fonts nfs.conf sv
freetds nfs.conf.d sysctl.d
fstab nftables.conf sysstat
fuse.conf nginx systemd
gai.conf nikto.conf terminfo
geoclue nsisconf.nsh texmf
ghostscript nsswitch.conf tightvncserver.conf
glvnd ntpsec timezone
gnome-system-tools ODBCDataSources timidity
gophish odbc.ini tmpfiles.d
gprofng.rc odbcinst.ini ts.conf
groff openal ucf.conf
group OpenCL udev
group- openni2 udisks2
grub.d opensc ufw
gshadow openvas unicornscan
gshadow- openvpn updatedb.conf
gss opt update-motd.d
gtk-2.0 os-release UPower
gtk-3.0 pam.conf usb_modeswitch.conf
guymager pam.d usb_modeswitch.d
gvm papersize vconsole.conf
hdparm.conf passwd vdpau_wrapper.cfg
host.conf passwd- vim
hostname perl vpnc
hosts php vulkan
hosts.allow plymouth wgetrc
hosts.deny polkit-1 wireshark
idmapd.conf postgresql wpa_supplicant
ifplugd postgresql-common X11
ImageMagick-6 powershell-empire xattr.conf
inetsim ppp xdg
init.d profile xfce4
initramfs-tools profile.d xml
inputrc protocols xrdp
insserv.conf.d proxychains4.conf zsh
ipp-usb pulse zsh_command_not_found
ipsec.conf python2.7
ipsec.d python3
┌──(kali㉿kali)-[/etc]
└─$ ls
adduser.conf cron.d environment.d hdparm.conf
ldap mailcap.order nsisconf.nsh profile runit
strongswan.d unicornscan
alsa cron.daily ethertypes host.conf
ld.so.cache manpath.config nsswitch.conf profile.d samba
stunnel updatedb.conf
alternatives cron.hourly ettercap hostname
ld.so.conf matplotlibrc ntpsec protocols sane.d
subgid update-motd.d
apache2 cron.monthly firebird hosts
ld.so.conf.d mime.types ODBCDataSources proxychains4.conf scalpel
subgid- UPower
apparmor crontab firefox-esr hosts.allow
legion.conf minicom odbc.ini pulse screenrc
subuid usb_modeswitch.conf
apparmor.d cron.weekly fonts hosts.deny
letsencrypt miredo odbcinst.ini python2.7
sddm.conf.d subuid- usb_modeswitch.d
apt cron.yearly freetds idmapd.conf
libao.conf miredo.conf openal python3
searchsploit_rc subversion vconsole.conf
arp-scan cryptsetup-initramfs fstab ifplugd
libaudit.conf mke2fs.conf OpenCL python3.12 security
sudo.conf vdpau_wrapper.cfg
avahi cryptsetup-nuke-password fuse.conf ImageMagick-6
libblockdev ModemManager openni2 radcli selinux
sudoers vim
bash.bashrc crypttab gai.conf inetsim
libccid_Info.plist modprobe.d opensc rc0.d
sensors3.conf sudoers.d vpnc
bash_completion cupshelpers geoclue init.d
libnl-3 modules openvas rc1.d sensors.d
sudo_logsrvd.conf vulkan
bash_completion.d dbus-1 ghostscript initramfs-
tools libpaper.d modules-load.d openvpn rc2.d
services supercat wgetrc
bindresvport.blacklist dconf glvnd inputrc
lightdm mosquitto opt rc3.d sgml
sv wireshark
binfmt.d debconf.conf gnome-system-tools
insserv.conf.d lighttpd motd os-release rc4.d
shadow sysctl.d wpa_supplicant
bluetooth debian_version gophish ipp-usb
locale.alias mtab pam.conf rc5.d shadow-
sysstat X11
ca-certificates default gprofng.rc ipsec.conf
locale.conf mysql pam.d rc6.d shells
systemd xattr.conf
ca-certificates.conf deluser.conf groff ipsec.d
locale.gen nanorc papersize rcS.d skel
terminfo xdg
chatscripts dhcp group ipsec.secrets
localtime netconfig passwd reader.conf.d
smartd.conf texmf xfce4
chromium dhcpcd.conf group- issue
logcheck netsniff-ng passwd- rearj.cfg
smartmontools tightvncserver.conf xml
chromium.d dictionaries-common grub.d issue.net
login.defs network perl redis smi.conf
timezone xrdp
cifs-utils dns2tcpd.conf gshadow java-21-
openjdk logrotate.conf NetworkManager php redsocks.conf
snmp timidity zsh
cloud doc-base gshadow- java-23-
openjdk logrotate.d networks plymouth request-key.conf
speech-dispatcher tmpfiles.d zsh_command_not_found
colord dpkg gss john
macchanger nfs.conf polkit-1 request-key.d sqlmap
ts.conf
console-setup e2scrub.conf gtk-2.0 kali-menu
machine-id nfs.conf.d postgresql resolv.conf ssh
ucf.conf
cracklib eac gtk-3.0 kernel
magic nftables.conf postgresql-common responder ssl
udev
credstore emacs guymager keyutils
magic.mime nginx powershell-empire rmt sslsplit
udisks2
credstore.encrypted environment gvm kismet
mailcap nikto.conf ppp rpc
strongswan.conf ufw

┌──(kali㉿kali)-[/etc]
└─$ ls -lrth
total 1.6M
-rw-r--r-- 1 root root 3.6K Jun 19 2016 screenrc
-rw-r--r-- 1 root root 2.4K Jan 2 2017 redsocks.conf
-rw-r--r-- 1 root root 264 Jul 26 2019 miredo.conf
-rw-r--r-- 1 root root 938 Sep 9 2019 ts.conf
-rw-r--r-- 1 root root 214 Apr 4 2020 dns2tcpd.conf
-rw-r--r-- 1 root root 13K Mar 27 2021 services
-rw-r--r-- 1 root root 51 Mar 7 2022 vdpau_wrapper.cfg
-rw-r--r-- 1 root root 3.1K Oct 17 2022 protocols
-rw-r--r-- 1 root root 911 Oct 17 2022 rpc
-rw-r--r-- 1 root root 1.9K Oct 17 2022 ethertypes
-rw-r--r-- 1 root root 583 Nov 21 2022 updatedb.conf
-rw-r--r-- 1 root root 460 Jan 20 2023 zsh_command_not_found
-rw-r--r-- 1 root root 1.3K Jan 27 2023 ucf.conf
-rw-r--r-- 1 root root 3.5K Feb 23 2023 nikto.conf
-rw-r--r-- 1 root root 1.7K Jun 27 2023 deluser.conf
-rw-r--r-- 1 root root 3.4K Jun 27 2023 adduser.conf
-rw-r--r-- 1 root root 74K Jul 12 2023 mime.types
-rw-r--r-- 1 root root 0 Aug 9 2023 odbc.ini
drwxr-xr-x 2 root root 4.0K Aug 9 2023 ODBCDataSources
-rw-r--r-- 1 root root 6.0K Nov 30 2023 smartd.conf
lrwxrwxrwx 1 root root 13 Jan 1 2024 rmt -> /usr/sbin/rmt
-rw-r--r-- 1 root root 26 Feb 21 2024 libao.conf
-rw-r--r-- 1 root root 281 Mar 10 2024 strongswan.conf
-rw------- 1 root root 175 Mar 10 2024 ipsec.secrets
-rw-r--r-- 1 root root 608 Mar 10 2024 ipsec.conf
drwxr-xr-x 2 root root 4.0K Mar 10 2024 cryptsetup-nuke-password
-rw-r--r-- 1 root root 1.1K Mar 26 2024 crontab
-rw-r--r-- 1 root root 1.2K Mar 26 2024 smi.conf
-rw-r--r-- 1 root root 1.7K Apr 6 2024 nsisconf.nsh
-rw-r--r-- 1 root root 552 Apr 8 2024 pam.conf
-rw-r--r-- 1 root root 34 Apr 10 2024 ld.so.conf
-rw-r--r-- 1 root root 367 Apr 10 2024 bindresvport.blacklist
-rw-r--r-- 1 root root 4.4K Apr 16 2024 hdparm.conf
-rw-r--r-- 1 root root 767 Apr 24 2024 netconfig
-rw-r--r-- 1 root root 45 May 1 2024 bash_completion
drwxr-xr-x 2 root root 4.0K May 24 2024 usb_modeswitch.d
-rw-r--r-- 1 root root 11K Jun 1 2024 sensors3.conf
-rw-r--r-- 1 root root 1.5K Jul 5 2024 tightvncserver.conf
-rw-r--r-- 1 root root 2.9K Jul 8 2024 debconf.conf
-rw-r--r-- 1 root root 494 Jul 14 2024 logrotate.conf
-rw-r--r-- 1 root root 12K Jul 15 2024 nanorc
-rw-r--r-- 1 root root 2.6K Jul 21 2024 gai.conf
-rw-r--r-- 1 root root 42K Jul 22 2024 matplotlibrc
-rw-r--r-- 1 root root 4.9K Aug 2 2024 wgetrc
-rw-r--r-- 1 root root 6.3K Aug 5 2024 login.defs
-rw-r--r-- 1 root root 1.9K Aug 20 2024 inputrc
-rw-r--r-- 1 root root 5.2K Aug 29 2024 manpath.config
drwxr-xr-x 2 root root 4.0K Sep 6 2024 wireshark
drwx------ 2 root root 4.0K Sep 10 2024 credstore.encrypted
drwx------ 2 root root 4.0K Sep 10 2024 credstore
drwxr-xr-x 2 root root 4.0K Sep 10 2024 binfmt.d
-rw-r--r-- 1 root root 40K Sep 16 2024 legion.conf
-rw-r--r-- 1 root root 3.9K Sep 18 2024 gprofng.rc
-rw-r--r-- 1 root root 694 Sep 21 2024 fuse.conf
-rw-r--r-- 1 root root 3.0K Sep 24 2024 locale.alias
-rw-r--r-- 1 root root 61K Oct 1 2024 libccid_Info.plist
-rw-r--r-- 1 root root 373 Oct 2 2024 rearj.cfg
-rwxr-xr-x 1 root root 243 Oct 4 2024 nftables.conf
-rw-r--r-- 1 root root 1.4K Oct 5 2024 dhcpcd.conf
-rw-r--r-- 1 root root 1.5K Oct 5 2024 usb_modeswitch.conf
-rw-r--r-- 1 root root 681 Oct 12 2024 xattr.conf
-rw-r--r-- 1 root root 2.0K Oct 20 2024 bash.bashrc
-rw-r--r-- 1 root root 1.8K Oct 24 08:29 request-key.conf
drwxr-xr-x 2 root root 4.0K Oct 24 08:29 keyutils
drwxr-xr-x 2 root root 4.0K Oct 26 07:33 nfs.conf.d
-rw-r--r-- 1 root root 1.6K Oct 26 07:33 nfs.conf
-rw-r--r-- 1 root root 171 Oct 26 07:33 idmapd.conf
-rw-r--r-- 1 root root 813 Oct 28 13:31 mke2fs.conf
-rw-r--r-- 1 root root 685 Oct 28 13:31 e2scrub.conf
-rw-r--r-- 1 root root 111 Oct 28 13:55 magic.mime
-rw-r--r-- 1 root root 111 Oct 28 13:55 magic
-rw-r--r-- 1 root root 5.8K Oct 29 02:27 proxychains4.conf
-rw-r--r-- 1 root root 191 Nov 4 07:46 libaudit.conf
-rw-r--r-- 1 root root 449 Nov 11 18:56 mailcap.order
-rw-r--r-- 1 root root 9.6K Nov 13 12:08 sudo_logsrvd.conf
-r--r----- 1 root root 1.7K Nov 13 12:08 sudoers
-rw-r--r-- 1 root root 4.3K Nov 13 12:08 sudo.conf
-rw-r--r-- 1 root root 828 Nov 14 20:33 profile
lrwxrwxrwx 1 root root 21 Nov 14 20:33 os-release -> ../usr/lib/os-
release
-rw-r--r-- 1 root root 282 Nov 14 20:33 motd
-rw-r--r-- 1 root root 23 Nov 14 20:33 issue.net
-rw-r--r-- 1 root root 30 Nov 14 20:33 issue
-rw-r--r-- 1 root root 9 Nov 14 20:33 host.conf
-rw-r--r-- 1 root root 13 Nov 14 20:33 debian_version
-rw-r--r-- 1 root root 694 Nov 20 11:21 searchsploit_rc
drwxr-xr-x 8 root root 4.0K Nov 30 07:14 apt
-rw-r--r-- 1 root root 0 Nov 30 07:14 subuid-
-rw-r--r-- 1 root root 0 Nov 30 07:14 subgid-
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 opt
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 selinux
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 terminfo
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 update-motd.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 modules-load.d
-r--r--r-- 1 root root 33 Nov 30 07:14 machine-id
lrwxrwxrwx 1 root root 16 Nov 30 07:14 vconsole.conf -> default/keyboard
lrwxrwxrwx 1 root root 19 Nov 30 07:14 mtab -> ../proc/self/mounts
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 cron.monthly
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 cron.hourly
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 cron.yearly
drwxr-xr-x 3 root root 4.0K Nov 30 07:14 gss
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 sysctl.d
-rw-r--r-- 1 root root 60 Nov 30 07:14 networks
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 supercat
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 vim
-rw-r--r-- 1 root root 212 Nov 30 07:14 modules
drwxr-xr-x 4 root root 4.0K Nov 30 07:14 udev
drwxr-xr-x 4 root root 4.0K Nov 30 07:14 dhcp
drwxr-xr-x 4 root root 4.0K Nov 30 07:15 dbus-1
drwxr-xr-x 3 root root 4.0K Nov 30 07:15 perl
drwxr-xr-x 3 root root 4.0K Nov 30 07:15 ca-certificates
drwxr-xr-x 6 root root 4.0K Nov 30 07:15 kernel
-rw-r--r-- 1 root root 6.2K Nov 30 07:15 ca-certificates.conf
drwxr-xr-x 2 root root 4.0K Nov 30 07:15 groff
drwxr-xr-x 5 root root 4.0K Nov 30 07:15 initramfs-tools
drwxr-xr-x 2 root root 4.0K Nov 30 07:15 cron.weekly
-rw-r--r-- 1 root root 9.4K Nov 30 07:15 locale.gen
-rw-r--r-- 1 root root 52 Nov 30 07:15 locale.conf
lrwxrwxrwx 1 root root 36 Nov 30 07:15 localtime ->
/usr/share/zoneinfo/America/New_York
-rw-r--r-- 1 root root 17 Nov 30 07:15 timezone
-r--r--r-- 1 root root 5 Nov 30 07:15 hostname
drwxr-xr-x 3 root root 4.0K Nov 30 07:15 runit
drwxr-xr-x 3 root root 4.0K Nov 30 07:15 ufw
drwxr-xr-x 3 root root 4.0K Nov 30 07:15 sv
drwxr-xr-x 4 root root 4.0K Nov 30 07:15 ghostscript
drwxr-xr-x 3 root root 4.0K Nov 30 07:16 alsa
drwxr-xr-x 2 root root 4.0K Nov 30 07:16 python3.12
drwxr-xr-x 5 root root 4.0K Nov 30 07:16 vulkan
drwxr-xr-x 3 root root 4.0K Nov 30 07:16 dconf
drwxr-xr-x 6 root root 4.0K Nov 30 07:16 logcheck
drwxr-xr-x 11 root root 4.0K Nov 30 07:16 ipsec.d
drwxr-xr-x 3 root root 4.0K Nov 30 07:16 emacs
drwxr-xr-x 3 root root 4.0K Nov 30 07:16 glvnd
drwxr-xr-x 3 root root 4.0K Nov 30 07:16 polkit-1
drwxr-xr-x 3 root root 4.0K Nov 30 07:17 libblockdev
drwxr-xr-x 3 root root 4.0K Nov 30 07:18 cloud
drwxr-xr-x 3 root root 4.0K Nov 30 07:18 kali-menu
drwxr-xr-x 4 root root 4.0K Nov 30 07:18 ModemManager
drwxr-xr-x 3 root root 4.0K Nov 30 07:18 eac
drwxr-xr-x 3 root root 4.0K Nov 30 07:19 ifplugd
-rw-r--r-- 1 root root 3 Nov 30 07:19 papersize
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 ImageMagick-6
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 sensors.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 ldap
drwxr-xr-x 4 root root 4.0K Nov 30 07:19 ssl
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 zsh
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 xrdp
-rw-r--r-- 1 root root 653 Nov 30 07:19 environment
-rw-r--r-- 1 root root 411 Nov 30 07:19 hosts.allow
-rw-r--r-- 1 root root 711 Nov 30 07:19 hosts.deny
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 libnl-3
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 openal
drwxr-xr-x 3 root root 4.0K Nov 30 07:19 strongswan.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 modprobe.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 timidity
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 openni2
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 reader.conf.d
drwxr-xr-x 4 root root 4.0K Nov 30 07:19 fonts
drwx------ 2 root root 4.0K Nov 30 07:19 vpnc
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 cracklib
drwxr-s--- 2 root dip 4.0K Nov 30 07:19 chatscripts
drwxr-xr-x 8 root dip 4.0K Nov 30 07:19 ppp
drwxr-xr-x 4 root root 4.0K Nov 30 07:19 openvpn
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 python3
drwxr-xr-x 8 root root 4.0K Nov 30 07:19 NetworkManager
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 wpa_supplicant
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 bluetooth
drwxr-xr-x 3 root root 4.0K Nov 30 07:19 avahi
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 ipp-usb
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 opensc
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 UPower
drwxr-xr-x 4 root root 4.0K Nov 30 07:19 speech-dispatcher
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 gtk-2.0
drwxr-xr-x 5 root root 4.0K Nov 30 07:19 skel
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 plymouth
drwxr-xr-x 2 root root 4.0K Nov 30 07:19 sddm.conf.d
drwxr-xr-x 17 root root 4.0K Nov 30 07:19 xdg
drwxr-xr-x 5 root root 4.0K Nov 30 07:19 pulse
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 gtk-3.0
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 environment.d
drwxr-xr-x 4 root root 4.0K Nov 30 07:20 firefox-esr
drwxr-xr-x 3 root root 4.0K Nov 30 07:20 lightdm
drwxr-xr-x 11 root root 4.0K Nov 30 07:20 X11
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 xfce4
drwxr-xr-x 3 root root 4.0K Nov 30 07:20 sane.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 udisks2
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 gnome-system-tools
drwxr-xr-x 3 root root 4.0K Nov 30 07:20 sgml
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 xml
drwxr-xr-x 2 root root 4.0K Nov 30 07:20 dictionaries-common
drwxr-xr-x 3 root root 4.0K Nov 30 07:22 letsencrypt
drwxr-xr-x 2 root root 4.0K Nov 30 07:22 python2.7
-rw-r--r-- 1 root root 54 Nov 30 07:24 crypttab
drwxr-xr-x 3 root root 4.0K Nov 30 07:24 doc-base
drwxr-xr-x 3 root root 4.0K Nov 30 07:25 firebird
drwxr-xr-x 4 root root 4.0K Nov 30 07:26 smartmontools
drwxr-xr-x 3 root root 4.0K Nov 30 07:26 OpenCL
drwxr-xr-x 4 root root 4.0K Nov 30 07:26 powershell-empire
drwxr-xr-x 3 root root 4.0K Nov 30 07:26 php
drwxr-xr-x 8 root root 4.0K Nov 30 07:28 texmf
drwxr-xr-x 2 root root 4.0K Nov 30 07:29 arp-scan
drwxr-xr-x 4 root root 4.0K Nov 30 07:29 lighttpd
drwxr-xr-x 2 root root 4.0K Nov 30 07:29 stunnel
drwxr-xr-x 2 root root 4.0K Nov 30 07:29 cifs-utils
drwxr-xr-x 8 root root 4.0K Nov 30 07:29 nginx
drwxr-xr-x 2 root root 4.0K Nov 30 07:29 insserv.conf.d
drwxr-xr-x 3 root root 4.0K Nov 30 07:29 geoclue
drwxr-xr-x 2 root root 4.0K Nov 30 07:29 samba
drwxr-xr-x 3 root root 4.0K Nov 30 07:29 snmp
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 radcli
-rw-r--r-- 1 root root 0 Nov 30 07:30 odbcinst.ini
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 scalpel
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 ntpsec
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 minicom
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 macchanger
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 chromium.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 chromium
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 gophish
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 freetds
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 bash_completion.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 sslsplit
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 sysstat
drwxr-xr-x 2 root root 4.0K Nov 30 07:30 cryptsetup-initramfs
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 guymager
drwxr-xr-x 5 root root 4.0K Nov 30 07:31 java-21-openjdk
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 kismet
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 cron.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 john
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 sqlmap
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 miredo
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 tmpfiles.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 cupshelpers
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 request-key.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 netsniff-ng
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 unicornscan
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 ld.so.conf.d
-rw-r--r-- 1 root root 574 Nov 30 07:31 nsswitch.conf
drwxr-xr-x 3 root root 4.0K Nov 30 07:31 postgresql-common
drwxr-xr-x 5 root root 4.0K Nov 30 07:31 mosquitto
drwxr-xr-x 5 root root 4.0K Nov 30 07:31 java-23-openjdk
drwxr-xr-x 2 root root 4.0K Nov 30 07:31 libpaper.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 inetsim
drwxr-xr-x 3 postgres postgres 4.0K Nov 30 07:32 postgresql
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 pam.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 responder
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 subversion
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 ettercap
drwxr-xr-x 4 root root 4.0K Nov 30 07:32 dpkg
drwxr-xr-x 4 root root 4.0K Nov 30 07:32 security
drwxr-xr-x 4 root root 4.0K Nov 30 07:32 mysql
-rw-r----- 1 root shadow 1.4K Nov 30 07:32 shadow-
drwxr-xr-x 2 root root 4.0K Nov 30 07:32 profile.d
drwxr-xr-x 8 root root 4.0K Nov 30 07:33 apache2
drwxr-xr-x 2 root root 4.0K Nov 30 07:33 cron.daily
drwxr-xr-x 3 root root 4.0K Nov 30 07:33 openvas
drwxrws--- 2 redis redis 4.0K Nov 30 07:33 redis
drwxr-xr-x 2 root root 4.0K Nov 30 07:33 sudoers.d
drwxr-xr-x 2 root root 4.0K Nov 30 07:33 gvm
drwxr-xr-x 2 root root 4.0K Nov 30 07:33 logrotate.d
drwxr-xr-x 2 root root 20K Nov 30 07:33 alternatives
-rw-r--r-- 1 root root 227 Nov 30 07:33 shells
-rw-r--r-- 1 root root 31K Nov 30 07:33 mailcap
drwxr-xr-x 7 root root 4.0K Nov 30 07:35 network
-rw-r--r-- 1 root root 18 Nov 30 07:35 subuid
-rw-r--r-- 1 root root 18 Nov 30 07:35 subgid
-rw-r----- 1 root shadow 1.5K Nov 30 07:35 shadow
-rw-r--r-- 1 root root 3.3K Nov 30 07:35 passwd-
-rw-r--r-- 1 root root 124 Nov 30 07:35 hosts
-rw-r--r-- 1 root root 3.3K Nov 30 07:35 passwd
drwxr-xr-x 5 root root 4.0K Nov 30 07:35 systemd
-rw-r--r-- 1 root root 113 Nov 30 09:25 fstab
drwxr-xr-x 9 root root 4.0K Nov 30 09:26 apparmor.d
drwxr-xr-x 3 root root 4.0K Nov 30 09:26 apparmor
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rcS.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 grub.d
-rw-r----- 1 root shadow 1.1K Nov 30 09:26 gshadow-
-rw-r--r-- 1 root root 1.3K Nov 30 09:26 group-
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 init.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc6.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc5.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc4.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc3.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc2.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc1.d
drwxr-xr-x 2 root root 4.0K Nov 30 09:26 rc0.d
drwxr-xr-x 3 root root 4.0K Nov 30 09:27 default
-rw-r--r-- 1 root root 1.3K Nov 30 09:27 group
-rw-r----- 1 root shadow 1.1K Nov 30 09:27 gshadow
drwxr-xr-x 2 root root 4.0K Feb 26 13:31 console-setup
-rw-r--r-- 1 root root 89K Feb 26 13:31 ld.so.cache
drwxr-xr-x 4 root root 4.0K Feb 26 13:31 ssh
drwxr-xr-x 2 colord colord 4.0K Feb 26 13:32 colord
-rw-r--r-- 1 root root 74 Apr 21 00:49 resolv.conf

┌──(kali㉿kali)-[/etc]
└─$ service wanrouter restart
Failed to restart wanrouter.service: Unit wanrouter.service not found.

┌──(kali㉿kali)-[/etc]
└─$ sudo apt install openssh-server\
>
Upgrading:
openssh-client openssh-client-gssapi openssh-server openssh-sftp-server

Summary:
Upgrading: 4, Installing: 0, Removing: 0, Not Upgrading: 1694
Download size: 1,686 kB
Freed space: 38.9 kB

Continue? [Y/n] y
Get:1 http://kali.download/kali kali-rolling/main amd64 openssh-sftp-server amd64
1:9.9p2-2 [65.4 kB]
Get:3 http://kali.download/kali kali-rolling/main amd64 openssh-client amd64
1:9.9p2-2 [968 kB]
Err:4 http://mirror.kku.ac.th/kali kali-rolling/main amd64 openssh-client-gssapi
all 1:9.9p2-2
403 Forbidden [IP: 202.28.95.174 80]
Get:2 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 openssh-server
amd64 1:9.9p2-2 [523 kB]
Fetched 1,556 kB in 3s (579 kB/s)
Error: Failed to fetch http://mirror.kku.ac.th/kali/pool/main/o/openssh/openssh-
client-gssapi_9.9p2-2_all.deb 403 Forbidden [IP: 202.28.95.174 80]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?
┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl start ssh

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl enable ssh
Synchronizing state of ssh.service with SysV service script with
/usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable ssh
Created symlink '/etc/systemd/system/sshd.service' →
'/usr/lib/systemd/system/ssh.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/ssh.service' →
'/usr/lib/systemd/system/ssh.service'.

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: active (running) since Mon 2025-04-21 01:05:55 EDT; 1min 28s ago
Invocation: c69a3e04819f49438101cf15df7d9b34
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 9836 (sshd)
Tasks: 1 (limit: 2219)
Memory: 1.9M (peak: 2.2M)
CPU: 57ms
CGroup: /system.slice/ssh.service
└─9836 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

Apr 21 01:05:55 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell


server...
Apr 21 01:05:55 kali sshd[9836]: Server listening on 0.0.0.0 port 22.
Apr 21 01:05:55 kali sshd[9836]: Server listening on :: port 22.
Apr 21 01:05:55 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell server.

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl restart ssh

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: active (running) since Mon 2025-04-21 01:08:32 EDT; 44s ago
Invocation: 6d93d6b4fd104593ab93dfeb63ce48f5
Docs: man:sshd(8)
man:sshd_config(5)
Process: 11369 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 11370 (sshd)
Tasks: 1 (limit: 2219)
Memory: 1.1M (peak: 1.6M)
CPU: 34ms
CGroup: /system.slice/ssh.service
└─11370 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

Apr 21 01:08:32 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell


server...
Apr 21 01:08:32 kali sshd[11370]: Server listening on 0.0.0.0 port 22.
Apr 21 01:08:32 kali sshd[11370]: Server listening on :: port 22.
Apr 21 01:08:32 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell server.

┌──(kali㉿kali)-[/etc]
└─$ ls
adduser.conf cron.d environment.d hdparm.conf
ldap mailcap.order nsisconf.nsh profile runit
strongswan.d unicornscan
alsa cron.daily ethertypes host.conf
ld.so.cache manpath.config nsswitch.conf profile.d samba
stunnel updatedb.conf
alternatives cron.hourly ettercap hostname
ld.so.conf matplotlibrc ntpsec protocols sane.d
subgid update-motd.d
apache2 cron.monthly firebird hosts
ld.so.conf.d mime.types ODBCDataSources proxychains4.conf scalpel
subgid- UPower
apparmor crontab firefox-esr hosts.allow
legion.conf minicom odbc.ini pulse screenrc
subuid usb_modeswitch.conf
apparmor.d cron.weekly fonts hosts.deny
letsencrypt miredo odbcinst.ini python2.7
sddm.conf.d subuid- usb_modeswitch.d
apt cron.yearly freetds idmapd.conf
libao.conf miredo.conf openal python3
searchsploit_rc subversion vconsole.conf
arp-scan cryptsetup-initramfs fstab ifplugd
libaudit.conf mke2fs.conf OpenCL python3.12 security
sudo.conf vdpau_wrapper.cfg
avahi cryptsetup-nuke-password fuse.conf ImageMagick-6
libblockdev ModemManager openni2 radcli selinux
sudoers vim
bash.bashrc crypttab gai.conf inetsim
libccid_Info.plist modprobe.d opensc rc0.d
sensors3.conf sudoers.d vpnc
bash_completion cupshelpers geoclue init.d
libnl-3 modules openvas rc1.d sensors.d
sudo_logsrvd.conf vulkan
bash_completion.d dbus-1 ghostscript initramfs-
tools libpaper.d modules-load.d openvpn rc2.d
services supercat wgetrc
bindresvport.blacklist dconf glvnd inputrc
lightdm mosquitto opt rc3.d sgml
sv wireshark
binfmt.d debconf.conf gnome-system-tools
insserv.conf.d lighttpd motd os-release rc4.d
shadow sysctl.d wpa_supplicant
bluetooth debian_version gophish ipp-usb
locale.alias mtab pam.conf rc5.d shadow-
sysstat X11
ca-certificates default gprofng.rc ipsec.conf
locale.conf mysql pam.d rc6.d shells
systemd xattr.conf
ca-certificates.conf deluser.conf groff ipsec.d
locale.gen nanorc papersize rcS.d skel
terminfo xdg
chatscripts dhcp group ipsec.secrets
localtime netconfig passwd reader.conf.d
smartd.conf texmf xfce4
chromium dhcpcd.conf group- issue
logcheck netsniff-ng passwd- rearj.cfg
smartmontools tightvncserver.conf xml
chromium.d dictionaries-common grub.d issue.net
login.defs network perl redis smi.conf
timezone xrdp
cifs-utils dns2tcpd.conf gshadow java-21-
openjdk logrotate.conf NetworkManager php redsocks.conf
snmp timidity zsh
cloud doc-base gshadow- java-23-
openjdk logrotate.d networks plymouth request-key.conf
speech-dispatcher tmpfiles.d zsh_command_not_found
colord dpkg gss john
macchanger nfs.conf polkit-1 request-key.d sqlmap
ts.conf
console-setup e2scrub.conf gtk-2.0 kali-menu
machine-id nfs.conf.d postgresql resolv.conf ssh
ucf.conf
cracklib eac gtk-3.0 kernel
magic nftables.conf postgresql-common responder ssl
udev
credstore emacs guymager keyutils
magic.mime nginx powershell-empire rmt sslsplit
udisks2
credstore.encrypted environment gvm kismet
mailcap nikto.conf ppp rpc
strongswan.conf ufw

┌──(kali㉿kali)-[/etc]
└─$ vi /etc/ssh/sshd_config

┌──(kali㉿kali)-[/etc]
└─$

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl stop ssh

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl status ssh
○ ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: inactive (dead) since Mon 2025-04-21 01:15:21 EDT; 3s ago
Duration: 6min 49.339s
Invocation: 6d93d6b4fd104593ab93dfeb63ce48f5
Docs: man:sshd(8)
man:sshd_config(5)
Process: 11369 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 11370 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited,
status=0/SUCCESS)
Main PID: 11370 (code=exited, status=0/SUCCESS)
Mem peak: 1.6M
CPU: 36ms

Apr 21 01:08:32 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell


server...
Apr 21 01:08:32 kali sshd[11370]: Server listening on 0.0.0.0 port 22.
Apr 21 01:08:32 kali sshd[11370]: Server listening on :: port 22.
Apr 21 01:08:32 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Apr 21 01:15:21 kali systemd[1]: Stopping ssh.service - OpenBSD Secure Shell
server...
Apr 21 01:15:21 kali sshd[11370]: Received signal 15; terminating.
Apr 21 01:15:21 kali systemd[1]: ssh.service: Deactivated successfully.
Apr 21 01:15:21 kali systemd[1]: Stopped ssh.service - OpenBSD Secure Shell server.

┌──(kali㉿kali)-[/etc]
└─$ vi /etc/ssh/sshd_config

┌──(kali㉿kali)-[/etc]
└─$ sudo systemctl status ssh
○ ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: inactive (dead) since Mon 2025-04-21 01:15:21 EDT; 54s ago
Duration: 6min 49.339s
Invocation: 6d93d6b4fd104593ab93dfeb63ce48f5
Docs: man:sshd(8)
man:sshd_config(5)
Process: 11369 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 11370 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited,
status=0/SUCCESS)
Main PID: 11370 (code=exited, status=0/SUCCESS)
Mem peak: 1.6M
CPU: 36ms

Apr 21 01:08:32 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell


server...
Apr 21 01:08:32 kali sshd[11370]: Server listening on 0.0.0.0 port 22.
Apr 21 01:08:32 kali sshd[11370]: Server listening on :: port 22.
Apr 21 01:08:32 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Apr 21 01:15:21 kali systemd[1]: Stopping ssh.service - OpenBSD Secure Shell
server...
Apr 21 01:15:21 kali sshd[11370]: Received signal 15; terminating.
Apr 21 01:15:21 kali systemd[1]: ssh.service: Deactivated successfully.
Apr 21 01:15:21 kali systemd[1]: Stopped ssh.service - OpenBSD Secure Shell server.

┌──(kali㉿kali)-[/etc]
└─$ vi /etc/ssh/sshd_config

┌──(kali㉿kali)-[/etc]
└─$ service wanrouter stop
Failed to stop wanrouter.service: Unit wanrouter.service not loaded.

┌──(kali㉿kali)-[/etc]
└─$ service wanrouter stop
Failed to stop wanrouter.service: Unit wanrouter.service not loaded.

┌──(kali㉿kali)-[/etc]
└─$

┌──(kali㉿kali)-[/etc]
└─$ cd

┌──(kali㉿kali)-[~]
└─$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 00:49 ? 00:00:03 /sbin/init splash
root 2 0 0 00:49 ? 00:00:00 [kthreadd]
root 3 2 0 00:49 ? 00:00:00 [pool_workqueue_release]
root 4 2 0 00:49 ? 00:00:00 [kworker/R-rcu_gp]
root 5 2 0 00:49 ? 00:00:00 [kworker/R-sync_wq]
root 6 2 0 00:49 ? 00:00:00 [kworker/R-slub_flushwq]
root 7 2 0 00:49 ? 00:00:00 [kworker/R-netns]
root 8 2 0 00:49 ? 00:00:00 [kworker/0:0-cgroup_destroy]
root 11 2 0 00:49 ? 00:00:02 [kworker/u8:0-events_unbound]
root 12 2 0 00:49 ? 00:00:00 [kworker/R-mm_percpu_wq]
root 13 2 0 00:49 ? 00:00:00 [rcu_tasks_kthread]
root 14 2 0 00:49 ? 00:00:00 [rcu_tasks_rude_kthread]
root 15 2 0 00:49 ? 00:00:00 [rcu_tasks_trace_kthread]
root 16 2 0 00:49 ? 00:00:00 [ksoftirqd/0]
root 17 2 0 00:49 ? 00:00:00 [rcu_preempt]
root 18 2 0 00:49 ? 00:00:00
[rcu_exp_par_gp_kthread_worker/0]
root 19 2 0 00:49 ? 00:00:00 [rcu_exp_gp_kthread_worker]
root 20 2 0 00:49 ? 00:00:00 [migration/0]
root 21 2 0 00:49 ? 00:00:00 [idle_inject/0]
root 22 2 0 00:49 ? 00:00:00 [cpuhp/0]
root 23 2 0 00:49 ? 00:00:00 [cpuhp/1]
root 24 2 0 00:49 ? 00:00:00 [idle_inject/1]
root 25 2 0 00:49 ? 00:00:00 [migration/1]
root 26 2 0 00:49 ? 00:00:00 [ksoftirqd/1]
root 28 2 0 00:49 ? 00:00:00 [kworker/1:0H-events_highpri]
root 31 2 0 00:49 ? 00:00:00 [kdevtmpfs]
root 32 2 0 00:49 ? 00:00:00 [kworker/R-inet_frag_wq]
root 33 2 0 00:49 ? 00:00:00 [kauditd]
root 34 2 0 00:49 ? 00:00:00 [khungtaskd]
root 35 2 0 00:49 ? 00:00:00 [oom_reaper]
root 36 2 0 00:49 ? 00:00:00 [kworker/R-writeback]
root 38 2 0 00:49 ? 00:00:00 [kcompactd0]
root 39 2 0 00:49 ? 00:00:00 [ksmd]
root 40 2 0 00:49 ? 00:00:00 [khugepaged]
root 41 2 0 00:49 ? 00:00:00 [kworker/R-kintegrityd]
root 42 2 0 00:49 ? 00:00:00 [kworker/R-kblockd]
root 43 2 0 00:49 ? 00:00:00 [kworker/R-blkcg_punt_bio]
root 44 2 0 00:49 ? 00:00:00 [irq/9-acpi]
root 46 2 0 00:49 ? 00:00:00 [kworker/R-tpm_dev_wq]
root 47 2 0 00:49 ? 00:00:00 [kworker/R-edac-poller]
root 48 2 0 00:49 ? 00:00:00 [kworker/R-devfreq_wq]
root 49 2 0 00:49 ? 00:00:00 [kworker/0:1H-kblockd]
root 50 2 0 00:49 ? 00:00:00 [kswapd0]
root 54 2 0 00:49 ? 00:00:00 [kworker/u8:4-events_unbound]
root 59 2 0 00:49 ? 00:00:00 [kworker/R-kthrotld]
root 63 2 0 00:49 ? 00:00:00 [kworker/R-acpi_thermal_pm]
root 64 2 0 00:49 ? 00:00:00 [kworker/R-mld]
root 65 2 0 00:49 ? 00:00:00 [kworker/R-ipv6_addrconf]
root 70 2 0 00:49 ? 00:00:00 [kworker/R-kstrp]
root 74 2 0 00:49 ? 00:00:00 [kworker/u9:0-ttm]
root 79 2 0 00:49 ? 00:00:00 [kworker/R-cryptd]
root 161 2 0 00:49 ? 00:00:00 [kworker/1:1H-kblockd]
root 222 2 0 00:49 ? 00:00:00 [irq/18-vmwgfx]
root 223 2 0 00:49 ? 00:00:00 [kworker/R-ttm]
root 225 2 0 00:49 ? 00:00:00 [kworker/R-ata_sff]
root 226 2 0 00:49 ? 00:00:00 [scsi_eh_0]
root 230 2 0 00:49 ? 00:00:00 [kworker/R-scsi_tmf_0]
root 231 2 0 00:49 ? 00:00:00 [scsi_eh_1]
root 233 2 0 00:49 ? 00:00:00 [scsi_eh_2]
root 234 2 0 00:49 ? 00:00:00 [kworker/R-scsi_tmf_1]
root 236 2 0 00:49 ? 00:00:00 [kworker/R-scsi_tmf_2]
root 239 2 0 00:49 ? 00:00:00 [kworker/0:2H-kblockd]
root 274 2 0 00:49 ? 00:00:00 [jbd2/sda1-8]
root 275 2 0 00:49 ? 00:00:00 [kworker/R-ext4-rsv-conversion]
root 322 2 0 00:49 ? 00:00:01 [kworker/1:3-ata_sff]
root 338 1 0 00:49 ? 00:00:00 /usr/lib/systemd/systemd-
journald
root 391 1 0 00:49 ? 00:00:00 /usr/lib/systemd/systemd-udevd
root 429 2 0 00:49 ? 00:00:00 [psimon]
root 503 1 0 00:49 ? 00:00:00 /usr/sbin/haveged --Foreground
--verbose=1
root 522 1 0 00:49 ? 00:00:00 /usr/libexec/accounts-daemon
message+ 523 1 0 00:49 ? 00:00:01 /usr/bin/dbus-daemon --system
--address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
polkitd 525 1 0 00:49 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-
debug --log-level=err
root 528 1 0 00:49 ? 00:00:00 /usr/lib/systemd/systemd-logind
root 572 1 0 00:49 ? 00:00:00 /usr/sbin/NetworkManager --no-
daemon
root 578 2 0 00:49 ? 00:00:00 [kworker/R-rpciod]
root 580 2 0 00:49 ? 00:00:00 [kworker/R-xprtiod]
root 584 1 0 00:49 ? 00:00:00 /usr/sbin/cron -f
root 611 1 0 00:49 ? 00:00:00 /usr/sbin/ModemManager
root 626 1 0 00:49 ? 00:00:00 /usr/sbin/VBoxService
root 687 1 0 00:49 ? 00:00:00 /usr/sbin/lightdm
root 703 687 2 00:49 tty7 00:00:42 /usr/lib/xorg/Xorg :0 -seat
seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root 705 1 0 00:49 tty1 00:00:00 /sbin/agetty -o -p -- \u --
noclear - linux
rtkit 760 1 0 00:49 ? 00:00:00 /usr/libexec/rtkit-daemon
root 829 687 0 00:49 ? 00:00:00 lightdm --session-child 13 24
kali 837 1 0 00:49 ? 00:00:00 /usr/lib/systemd/systemd --user
kali 838 837 0 00:49 ? 00:00:00 (sd-pam)
kali 857 837 0 00:49 ? 00:00:00 /usr/bin/pipewire
kali 858 837 0 00:49 ? 00:00:00 /usr/bin/pipewire -c filter-
chain.conf
kali 860 837 0 00:49 ? 00:00:00 /usr/bin/wireplumber
kali 861 837 0 00:49 ? 00:00:00 /usr/bin/pipewire-pulse
kali 862 837 0 00:49 ? 00:00:00 /usr/bin/gnome-keyring-daemon
--foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring
kali 863 837 0 00:49 ? 00:00:00 /usr/bin/dbus-daemon --session
--address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
kali 885 829 0 00:49 ? 00:00:00 xfce4-session
kali 945 1 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --clipboard
kali 947 945 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --clipboard
kali 960 1 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --seamless
kali 961 960 0 00:49 ? 00:00:02 /usr/bin/VBoxClient --seamless
kali 968 1 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --
draganddrop
kali 969 968 0 00:49 ? 00:00:08 /usr/bin/VBoxClient --
draganddrop
kali 992 837 0 00:49 ? 00:00:00 /usr/libexec/at-spi-bus-
launcher
kali 999 992 0 00:49 ? 00:00:00 /usr/bin/dbus-daemon --config-
file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --
address=unix:path=/run/user/1000/at-spi/bus_0
kali 1011 837 0 00:49 ? 00:00:00 /usr/libexec/at-spi2-registryd
--use-gnome-session
kali 1018 1 0 00:49 ? 00:00:00 /usr/bin/ssh-agent -s
kali 1026 837 0 00:49 ? 00:00:00 /usr/bin/gpg-agent --supervised
kali 1028 885 0 00:49 ? 00:00:10 xfwm4 --display :0.0 --sm-
client-id 2812c1815-39fe-41b3-9c5a-c29471bebfbb
kali 1032 837 0 00:49 ? 00:00:00 /usr/libexec/gvfsd
kali 1038 837 0 00:49 ? 00:00:00 /usr/libexec/gvfsd-fuse
/run/user/1000/gvfs -f
kali 1053 1 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --vmsvga
kali 1054 1053 0 00:49 ? 00:00:00 /usr/bin/VBoxClient --vmsvga
kali 1064 885 0 00:49 ? 00:00:00 xfsettingsd --display :0.0 --
sm-client-id 2a842173c-9c9b-4312-8b46-70c552a84e6f
kali 1068 885 0 00:49 ? 00:00:00 xfce4-panel --display :0.0 --
sm-client-id 258e1c026-5543-49cc-b9db-c17fc1d4617f
kali 1073 885 0 00:49 ? 00:00:00 Thunar --sm-client-id
23e78f80a-93c5-4ccb-bd18-f93c936ea663 --daemon
kali 1079 885 0 00:49 ? 00:00:01 xfdesktop --display :0.0 --sm-
client-id 26814b2ce-142f-41c0-be6b-9cc52383dc2e
kali 1083 1068 0 00:49 ? 00:00:01
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libwhiskermenu.so 1 27262983
whiskermenu Whisker Menu Show a menu to easily access insta
kali 1087 1068 0 00:49 ? 00:00:05
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libcpugraph.so 13 27262988 cpugraph
CPU Graph Graphical representation of the CPU load
kali 1088 1068 0 00:49 ? 00:00:00
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libsystray.so 14 27262989 systray
Status Tray Plugin Provides status notifier items (app
kali 1089 1068 0 00:49 ? 00:00:04
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libgenmon.so 15 27262990 genmon
Generic Monitor Show output of a command.
kali 1090 1068 0 00:49 ? 00:00:00
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 16 27262991
pulseaudio PulseAudio Plugin Adjust the audio volume
kali 1091 1068 0 00:49 ? 00:00:00
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libnotification-plugin.so 17 27262992
notification-plugin Notification Plugin Notificati
kali 1092 1068 0 00:49 ? 00:00:01
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4powermanager.so 18 27262993
power-manager-plugin Power Manager Plugin Display th
kali 1100 1068 0 00:49 ? 00:00:00
/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0
/usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libactions.so 22 27262994 actions
Action Buttons Log out, lock or other system actions
kali 1117 885 0 00:49 ? 00:00:00 xfce4-power-manager --restart
--sm-client-id 246d68404-7cef-40e2-9580-0165a1d1c39a
kali 1125 837 0 00:49 ? 00:00:00
/usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
root 1147 1 0 00:49 ? 00:00:00 /usr/libexec/upowerd
kali 1149 885 0 00:49 ? 00:00:00 /usr/libexec/polkit-mate-
authentication-agent-1
kali 1154 885 0 00:49 ? 00:00:00 xiccd
kali 1162 885 0 00:49 ? 00:00:00 /usr/bin/python3
/usr/share/system-config-printer/applet.py
kali 1177 885 0 00:49 ? 00:00:00 light-locker
colord 1178 1 0 00:49 ? 00:00:00 /usr/libexec/colord
kali 1189 837 0 00:49 ? 00:00:00 /usr/libexec/dconf-service
kali 1194 885 0 00:49 ? 00:00:00 /usr/bin/python3
/usr/bin/blueman-applet
kali 1209 885 0 00:49 ? 00:00:00
/usr/libexec/geoclue-2.0/demos/agent
kali 1212 885 0 00:49 ? 00:00:00 nm-applet
kali 1251 837 0 00:49 ? 00:00:00 /usr/libexec/gvfs-udisks2-
volume-monitor
root 1266 1 0 00:49 ? 00:00:00 /usr/libexec/udisks2/udisksd
root 1311 2 0 00:49 ? 00:00:00 [kworker/u9:2]
kali 1313 837 0 00:49 ? 00:00:00 /usr/libexec/gvfs-gphoto2-
volume-monitor
kali 1328 837 0 00:49 ? 00:00:00 /usr/libexec/gvfs-afc-volume-
monitor
kali 1334 837 0 00:49 ? 00:00:00 /usr/libexec/gvfs-goa-volume-
monitor
kali 1339 837 0 00:49 ? 00:00:00 /usr/libexec/gvfs-mtp-volume-
monitor
kali 1349 1032 0 00:49 ? 00:00:00 /usr/libexec/gvfsd-trash --
spawner :1.22 /org/gtk/gvfs/exec_spaw/0
kali 1357 837 0 00:49 ? 00:00:00 /usr/libexec/gvfsd-metadata
kali 1377 837 0 00:49 ? 00:00:00 /usr/libexec/bluetooth/obexd
kali 5824 1 0 00:59 ? 00:00:06 /usr/bin/qterminal
kali 5830 5824 0 00:59 pts/0 00:00:02 /usr/bin/zsh
kali 5895 837 0 00:59 ? 00:00:00 /usr/libexec/xdg-desktop-portal
kali 5907 837 0 00:59 ? 00:00:00 /usr/libexec/xdg-document-
portal
kali 5921 837 0 00:59 ? 00:00:00 /usr/libexec/xdg-permission-
store
root 5931 5907 0 00:59 ? 00:00:00 fusermount3 -o
rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
kali 5936 837 0 00:59 ? 00:00:00 /usr/libexec/xdg-desktop-
portal-gtk
root 6561 2 0 00:59 ? 00:00:00 [kworker/1:1-
events_freezable_pwr_efficient]
root 7269 2 0 01:01 ? 00:00:00 [kworker/u8:2-events_unbound]
root 9351 2 0 01:05 ? 00:00:00 [kworker/0:1-events]
root 10267 2 0 01:06 ? 00:00:00 [psimon]
root 14007 2 0 01:13 ? 00:00:00 [kworker/1:0-events]
kali 16293 5830 0 01:18 pts/0 00:00:00 ps -ef

┌──(kali㉿kali)-[~]
└─$ ps -ef |grep "ssh"
kali 1018 1 0 00:49 ? 00:00:00 /usr/bin/ssh-agent -s
kali 16567 5830 0 01:18 pts/0 00:00:00 grep --color=auto ssh

┌──(kali㉿kali)-[~]
└─$ kill -9 1018

┌──(kali㉿kali)-[~]
└─$ ps -ef |grep "ssh"
kali 16779 5830 0 01:19 pts/0 00:00:00 grep --color=auto ssh

┌──(kali㉿kali)-[~]
└─$ vi /etc/ssh/sshd_config

┌──(kali㉿kali)-[~]
└─$ ls -lrth
total 32K
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Videos
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Templates
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Public
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Pictures
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Music
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Downloads
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Documents
drwxr-xr-x 2 kali kali 4.0K Feb 26 13:31 Desktop

┌──(kali㉿kali)-[~]
└─$ cd /eytc
cd: no such file or directory: /eytc

┌──(kali㉿kali)-[~]
└─$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos

┌──(kali㉿kali)-[~]
└─$ c /etc
c: command not found

┌──(kali㉿kali)-[~]
└─$ cd /etc

┌──(kali㉿kali)-[/etc]
└─$ ls
adduser.conf cron.d environment.d hdparm.conf
ldap mailcap.order nsisconf.nsh profile runit
strongswan.d unicornscan
alsa cron.daily ethertypes host.conf
ld.so.cache manpath.config nsswitch.conf profile.d samba
stunnel updatedb.conf
alternatives cron.hourly ettercap hostname
ld.so.conf matplotlibrc ntpsec protocols sane.d
subgid update-motd.d
apache2 cron.monthly firebird hosts
ld.so.conf.d mime.types ODBCDataSources proxychains4.conf scalpel
subgid- UPower
apparmor crontab firefox-esr hosts.allow
legion.conf minicom odbc.ini pulse screenrc
subuid usb_modeswitch.conf
apparmor.d cron.weekly fonts hosts.deny
letsencrypt miredo odbcinst.ini python2.7
sddm.conf.d subuid- usb_modeswitch.d
apt cron.yearly freetds idmapd.conf
libao.conf miredo.conf openal python3
searchsploit_rc subversion vconsole.conf
arp-scan cryptsetup-initramfs fstab ifplugd
libaudit.conf mke2fs.conf OpenCL python3.12 security
sudo.conf vdpau_wrapper.cfg
avahi cryptsetup-nuke-password fuse.conf ImageMagick-6
libblockdev ModemManager openni2 radcli selinux
sudoers vim
bash.bashrc crypttab gai.conf inetsim
libccid_Info.plist modprobe.d opensc rc0.d
sensors3.conf sudoers.d vpnc
bash_completion cupshelpers geoclue init.d
libnl-3 modules openvas rc1.d sensors.d
sudo_logsrvd.conf vulkan
bash_completion.d dbus-1 ghostscript initramfs-
tools libpaper.d modules-load.d openvpn rc2.d
services supercat wgetrc
bindresvport.blacklist dconf glvnd inputrc
lightdm mosquitto opt rc3.d sgml
sv wireshark
binfmt.d debconf.conf gnome-system-tools
insserv.conf.d lighttpd motd os-release rc4.d
shadow sysctl.d wpa_supplicant
bluetooth debian_version gophish ipp-usb
locale.alias mtab pam.conf rc5.d shadow-
sysstat X11
ca-certificates default gprofng.rc ipsec.conf
locale.conf mysql pam.d rc6.d shells
systemd xattr.conf
ca-certificates.conf deluser.conf groff ipsec.d
locale.gen nanorc papersize rcS.d skel
terminfo xdg
chatscripts dhcp group ipsec.secrets
localtime netconfig passwd reader.conf.d
smartd.conf texmf xfce4
chromium dhcpcd.conf group- issue
logcheck netsniff-ng passwd- rearj.cfg
smartmontools tightvncserver.conf xml
chromium.d dictionaries-common grub.d issue.net
login.defs network perl redis smi.conf
timezone xrdp
cifs-utils dns2tcpd.conf gshadow java-21-
openjdk logrotate.conf NetworkManager php redsocks.conf
snmp timidity zsh
cloud doc-base gshadow- java-23-
openjdk logrotate.d networks plymouth request-key.conf
speech-dispatcher tmpfiles.d zsh_command_not_found
colord dpkg gss john
macchanger nfs.conf polkit-1 request-key.d sqlmap
ts.conf
console-setup e2scrub.conf gtk-2.0 kali-menu
machine-id nfs.conf.d postgresql resolv.conf ssh
ucf.conf
cracklib eac gtk-3.0 kernel
magic nftables.conf postgresql-common responder ssl
udev
credstore emacs guymager keyutils
magic.mime nginx powershell-empire rmt sslsplit
udisks2
credstore.encrypted environment gvm kismet
mailcap nikto.conf ppp rpc
strongswan.conf ufw

┌──(kali㉿kali)-[/etc]
└─$ cd ssh

┌──(kali㉿kali)-[/etc/ssh]
└─$ ls -lrth
total 572K
drwxr-xr-x 2 root root 4.0K Oct 27 09:58 sshd_config.d
-rw-r--r-- 1 root root 3.2K Oct 27 09:58 sshd_config
-rw-r--r-- 1 root root 1.7K Oct 27 09:58 ssh_config
-rw-r--r-- 1 root root 529K Oct 27 09:58 moduli
drwxr-xr-x 2 root root 4.0K Nov 30 07:14 ssh_config.d
-rw-r--r-- 1 root root 563 Feb 26 13:31 ssh_host_rsa_key.pub
-rw------- 1 root root 2.6K Feb 26 13:31 ssh_host_rsa_key
-rw-r--r-- 1 root root 91 Feb 26 13:31 ssh_host_ed25519_key.pub
-rw------- 1 root root 399 Feb 26 13:31 ssh_host_ed25519_key
-rw-r--r-- 1 root root 171 Feb 26 13:31 ssh_host_ecdsa_key.pub
-rw------- 1 root root 505 Feb 26 13:31 ssh_host_ecdsa_key

┌──(kali㉿kali)-[/etc/ssh]
└─$ vi sshd_config

┌──(kali㉿kali)-[/etc/ssh]
└─$ chmod 777 sshd_config
chmod: changing permissions of 'sshd_config': Operation not permitted

┌──(kali㉿kali)-[/etc/ssh]
└─$ sudo su
┌──(root㉿kali)-[/etc/ssh]
└─# chmod 777 sshd_config

┌──(root㉿kali)-[/etc/ssh]
└─# ls
moduli ssh_config ssh_config.d sshd_config sshd_config.d ssh_host_ecdsa_key
ssh_host_ecdsa_key.pub ssh_host_ed25519_key ssh_host_ed25519_key.pub
ssh_host_rsa_key ssh_host_rsa_key.pub

┌──(root㉿kali)-[/etc/ssh]
└─# vi sshd_config

┌──(root㉿kali)-[/etc/ssh]
└─# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::2e12:7de2:f33e:6b29 prefixlen 64 scopeid 0x20<link>
inet6 fd00::ed9:e393:9218:d031 prefixlen 64 scopeid 0x0<global>
ether 08:00:27:6e:13:6e txqueuelen 1000 (Ethernet)
RX packets 71984 bytes 81831449 (78.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16927 bytes 1070279 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 480 (480.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 480 (480.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

┌──(root㉿kali)-[/etc/ssh]
└─#

┌──(root㉿kali)-[/etc/ssh]
└─# service wanrouter start
Failed to start wanrouter.service: Unit wanrouter.service not found.

┌──(root㉿kali)-[/etc/ssh]
└─# systemctl status ssh
○ ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: inactive (dead) since Mon 2025-04-21 01:15:21 EDT; 12min ago
Duration: 6min 49.339s
Invocation: 6d93d6b4fd104593ab93dfeb63ce48f5
Docs: man:sshd(8)
man:sshd_config(5)
Process: 11369 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 11370 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited,
status=0/SUCCESS)
Main PID: 11370 (code=exited, status=0/SUCCESS)
Mem peak: 1.6M
CPU: 36ms

Apr 21 01:08:32 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell


server...
Apr 21 01:08:32 kali sshd[11370]: Server listening on 0.0.0.0 port 22.
Apr 21 01:08:32 kali sshd[11370]: Server listening on :: port 22.
Apr 21 01:08:32 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Apr 21 01:15:21 kali systemd[1]: Stopping ssh.service - OpenBSD Secure Shell
server...
Apr 21 01:15:21 kali sshd[11370]: Received signal 15; terminating.
Apr 21 01:15:21 kali systemd[1]: ssh.service: Deactivated successfully.
Apr 21 01:15:21 kali systemd[1]: Stopped ssh.service - OpenBSD Secure Shell server.

┌──(root㉿kali)-[/etc/ssh]
└─# systemctl restart ssh

┌──(root㉿kali)-[/etc/ssh]
└─# systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset:
disabled)
Active: active (running) since Mon 2025-04-21 01:27:43 EDT; 2s ago
Invocation: 79f43609dd9249b0b100a842b899c918
Docs: man:sshd(8)
man:sshd_config(5)
Process: 21229 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 21231 (sshd)
Tasks: 1 (limit: 2219)
Memory: 1.1M (peak: 1.6M)
CPU: 35ms
CGroup: /system.slice/ssh.service
└─21231 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

Apr 21 01:27:43 kali systemd[1]: Starting ssh.service - OpenBSD Secure Shell serv
Apr 21 01:27:43 kali sshd[21231]: Server listening on :: port 2222.
Apr 21 01:27:43 kali sshd[21231]: Server listening on 0.0.0.0 port 2222.
Apr 21 01:27:43 kali systemd[1]: Started ssh.service - OpenBSD Secure Shell serve

┌──(root㉿kali)-[/etc/ssh]
└─# ps -ef |grep ssh
root 21231 1 0 01:27 ? 00:00:00 sshd: /usr/sbin/sshd -D [list
root 21610 18363 0 01:28 pts/1 00:00:00 grep --color=auto ssh

┌──(root㉿kali)-[/etc/ssh]
└─# service sshd restart

You might also like