电子商务网站建设课程的心得,深圳创业补贴政策2023申请流程,工业物联网平台,济南seo网站排名优化工具安装一个Ubuntu操作系统#xff0c;有可能不能通过SSH登录#xff0c;可能因为没有安装SSH或者没有配置SSH 安装 //打开终端
sudo apt-get install openssh-server
查看安装状态 ps -e |grep ssh 配置 主要修改两个配置文件#xff1a;
进入ssh目录下
cd /etc/ssh …安装一个Ubuntu操作系统有可能不能通过SSH登录可能因为没有安装SSH或者没有配置SSH 安装
··· //打开终端
sudo apt-get install openssh-server
查看安装状态
···
ps -e |grep ssh 配置 主要修改两个配置文件
进入ssh目录下
cd /etc/ssh vi ssh_config
Host *
# ForwardAgent no
# ForwardX11 no
# ForwardX11Trusted yes
PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# IdentityFile ~/.ssh/id_ecdsa
# IdentityFile ~/.ssh/id_ed25519
Port 22
# Protocol 2
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes vi sshd_config #Privilege Separation is turned on for security
UsePrivilegeSeparation yes# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024# Logging
SyslogFacility AUTH
LogLevel INFO# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yesRSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys 重启SSH
sudo /etc/init.d/ssh resart