Closed Ran-Xing closed 1 year ago
@ruyan-lx 🐮🍺
@ruyan-lx Windows Install OpenSSH.pdf Windows Install OpenSSH2.pdf
好像不是很聪明的样子
ssh-keygen \
-m PEM \
-t rsa \
-b 4096 \
-C "laowang@qq.com" \
-N my_ssh_passwd
# >>>
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
<<<
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
# >>>
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
<<<
Path :
Online : True
RestartNeeded : False
# >>>
# Start the sshd service
Start-Service sshd
# OPTIONAL but recommended:
Set-Service -Name sshd -StartupType 'Automatic'
# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {
Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."
New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
} else {
Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."
}
# Uninstall the OpenSSH Client
Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Uninstall the OpenSSH Server
Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
C:\ProgramData\ssh\administrators_authorized_keys
C:\ProgramData\ssh\sshd_config
C:\Users\<UserName>\.ssh\authorized_keys
StrictModes no
PubkeyAuthentication yes
PasswordAuthentication no
!!!PermiEmptyPasswords no
!!!AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
Stop-Service sshd
C:\Windows\System32\OpenSSH\sshd.exe -d
Restart-Service sshd # 重启服务
Stop-Service sshd # 停止服务
Start-Service sshd # 开启服务
😅😅😅因为设置了背景,不能导出为PDF。
要先将dyzj.css文件中背景图片注释
@ruyan-lx 能不能把三个点放小一点,已关注
@Ran-Xing 改了一下
@ruyan-lx 大佬太强了
@Ran-Xing 😅没有没有,原作者才是强,我只是在巨人肩膀上改改皮毛
@ruyan-lx 你看下
#write {
/* max-width: 860px; 改动,整体显示宽度*/
max-width: 1100px;
/*margin: 100px auto;*/
padding: 20px 30px 160px;
/* 改动:新增文章主体背景颜色以及圆角 */
background-color: #ffffffb0;
border-radius: 10px;
box-shadow: 0px 0px 20px 4px #ffffff;
}
你是要干嘛,如果是不想要那个文章主体周边发散效果box-shadow: 0px 0px 20px 4px #ffffff; 注释掉就好了 margin: 100px auto;别注释了,可能会不居中的。
@ruyan-lx 我觉得顶部空间太多了
那就改成,margin: 0px auto;
这是刚想到个高斯模糊的效果,想搭配背景图片去弄,所以顺手改大了些🙃
@ruyan-lx 你在你的仓库开启一下issues 权限,我蹭蹭你的
🎉宝,那三个点我加上了,可以试试我改的:https://github.com/ruyan-lx/typora-dyzj-theme