简体   繁体   English

如何在LEMP服务器上禁用私钥授权

[英]How to disable private key authorization on LEMP server

I run a LEMP VPS using Ubuntu 10.04 LTS. 我使用Ubuntu 10.04 LTS运行LEMP VPS。 I started it with a tutorial, and am starting to learn my way around, but it had me create a private key with putty/pageant. 我从一个教程开始,并且开始学习自己的方法,但是它让我用腻子/选美创建了一个私钥。 I can really only use Filezilla sftp for transfer and I login to the console w/ putty. 我实际上只能使用Filezilla sftp进行传输,并且使用腻子登录到控制台。 However, now I want to start working on some major changes to my website in Dreamweaver CS5 and I want to sync all my files locally but it does not support private key authorization. 但是,现在我想开始在Dreamweaver CS5中对我的网站进行一些重大更改,并且我想在本地同步我的所有文件,但是它不支持私钥授权。

My private key is located at 我的私钥位于

/USER/.ssh/authorized_keys /USER/.ssh/authorized_keys

I tried going into nano and just deleting it but that doesn't work.. I just want to temporarily disable the requirement for private key authorization, not remove it completely. 我尝试进入nano并只是将其删除,但是那是行不通的。我只是想暂时禁用私钥授权的要求,而不是完全删除它。

Editing the authorized_keys file doesn't mean that you can use passwords, it means that you can't login with keys, to use passowrds you need to edit the ssh config it self, 编辑authorized_keys文件并不意味着您可以使用密码,这意味着您不能使用密钥登录,要使用passowrds,您需要自己编辑ssh配置,

File: /etc/ssh/sshd_config , check the bottom of the file and set this 文件: /etc/ssh/sshd_config ,检查文件底部并进行设置

UsePAM yes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Vultr (Ubuntu Lemp) 上设置 Cron 作业 - How to set Cron Job on Vultr (Ubuntu Lemp) Apache2 服务器关闭 找不到私钥 - Apache2 server down Private key not found 如何从旧密钥文件中提取公钥以与新私钥一起使用(私钥丢失的密码) - How to extract public key from old key file to use with new private key (lost private key password) 如何从 ubuntu 禁用密钥? - How to disable a key from ubuntu? Jenkins SSH 服务器升级后无法使用私钥进行身份验证 - Jenkins SSH failing to authenticate with private key after server upgrade Postfix 无法从文件 /etc/ssl/private/server.key 中获取 RSA 私钥:禁用 TLS 支持 - Postfix cannot get RSA private key from file /etc/ssl/private/server.key: disabling TLS support 私钥格式错误 - Private Key format errors 如何在运行LEMP的Google Compute Engine上使用PhpStorm设置远程项目? - How can i setup remote project with PhpStorm with Google Compute Engine running LEMP? 如何在不安装 Apache 2 的情况下卸载 php7.2-fpm(在 LEMP 机器上) - How to UNinstall php7.2-fpm WITHOUT installing Apache 2 (on a LEMP machine) 使用 exec 的私钥建立与远程 SSH 服务器的连接,Node.js - Establish connection to remote SSH server with private key for exec, Node.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM