Difference between revisions of "Apt install openssh-server"
Jump to navigation
Jump to search
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | [[apt install]] -y openssh-server | |
Line 9: | Line 9: | ||
[[docker run ubuntu]] | [[docker run ubuntu]] | ||
+ | [[/etc/ssh/sshd_config]], [[PermitRootLogin]] yes, [[service ssh restart]] | ||
+ | |||
+ | |||
+ | [[rpl --backup]] "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && [[service ssh restart]] | ||
+ | |||
+ | [[sed -i]]"[[.BAK]]" s/"#PermitRootLogin prohibit-password"/"PermitRootLogin yes"/[[g]] [[/etc/ssh/sshd_config]] | ||
− | ==See also == | + | == See also == |
+ | * {{sshd}} | ||
* {{OpenSSH}} | * {{OpenSSH}} | ||
[[Category:Openssh]] | [[Category:Openssh]] |
Latest revision as of 13:48, 31 January 2024
apt install -y openssh-server
systemctl status sshd service ssh start service ssh status service ssh restart
docker run ubuntu /etc/ssh/sshd_config, PermitRootLogin yes, service ssh restart
rpl --backup "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && service ssh restart
sed -i".BAK" s/"#PermitRootLogin prohibit-password"/"PermitRootLogin yes"/g /etc/ssh/sshd_config
See also[edit]
sshd
,sshd logs
,sshd -t
,sshd -T
,sshd_config
,sftp
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF
Advertising: