Existujú 2 konfiguračné súbory:
1) /etc/ssh/ssh_config - konfiguračný súbor klienta
2) /etc/ssh/sshd_config - konfiguračný súbor serveru
existuje príkaz sshd
pokiaľ chcem skontrolovať konfiguračný súbor serveru, robím to pomocou sshd
root@guliverkel:/etc/ssh# sshd -t
root@guliverkel:/etc/ssh#
(Ako vidím, je to v poriadku)
root@guliverkel:/etc/ssh# sshd -t
/etc/ssh/sshd_config: line 13: Bad configuration option: naj_ce_guta_ulapi
/etc/ssh/sshd_config: terminating, 1 bad configuration options
root@guliverkel:/etc/ssh#
(Niečo som pridal do konfiguračého súboru, ale ako vidím, nepáči sa u riadok 13)
PS: Tu je výpis z debiana, čo robiť, keď príkaz sshd nefunguje (najčastejšie ie je nainštalovaný ssh server)
root@guliverkel:/etc/ssh# apt install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
openssh-server openssh-sftp-server
Suggested packages:
molly-guard monkeysphere rssh ufw
The following NEW packages will be installed:
openssh-server openssh-sftp-server ssh
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 561 kB of archives.
After this operation, 1,222 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.sk.debian.org/debian stretch/main amd64 openssh-sftp-server amd64 1:7.4p1-10+deb9u7 [39.5 kB]
Get:2 http://ftp.sk.debian.org/debian stretch/main amd64 openssh-server amd64 1:7.4p1-10+deb9u7 [332 kB]
Get:3 http://ftp.sk.debian.org/debian stretch/main amd64 ssh all 1:7.4p1-10+deb9u7 [189 kB]
Fetched 561 kB in 0s (1,159 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 152243 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a7.4p1-10+deb9u7_amd64.deb ...
Unpacking openssh-sftp-server (1:7.4p1-10+deb9u7) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a7.4p1-10+deb9u7_amd64.deb ...
Unpacking openssh-server (1:7.4p1-10+deb9u7) ...
Selecting previously unselected package ssh.
Preparing to unpack .../ssh_1%3a7.4p1-10+deb9u7_all.deb ...
Unpacking ssh (1:7.4p1-10+deb9u7) ...
Setting up openssh-sftp-server (1:7.4p1-10+deb9u7) ...
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up openssh-server (1:7.4p1-10+deb9u7) ...
Processing triggers for systemd (232-25+deb9u12) ...
Žiadne komentáre:
Zverejnenie komentára