简体   繁体   English

获得对AWS instace的访问权或将数据存储在Postgresql数据库中

[英]gaining access to aws instace or having the data that stored in postgresql database

I am trying to login to the aws instance using ssh and putty that having odoo v11 running, I followed different ways to get access but still, I cannot. 我正在尝试使用ssh和putty登录到aws实例,即运行odoo v11时,我遵循了不同的方法来获得访问权限,但是仍然不能。

Errors in ssh :
permission denied (public key) ->  I was able to login with the same key suddenly I could not log in and no one changed the permission 

also I changed the key pairs but still cannot log in 我也更改了密钥对,但仍然无法登录

Errors in putty :
It shows (server refused our key) -> I get the same message with the previous key and the new one 

Also, I made an EBS-Backed AMI and launched a new instance using a new key and I am still not gaining access 另外,我制作了一个由EBS支持的AMI,并使用新密钥启动了一个新实例,但我仍然无法获得访问权限

So my question is how to check the .ssh configuration? 所以我的问题是如何检查.ssh配置? And how to backup PostgreSQL database and add it to newly created odoo ? 以及如何备份PostgreSQL数据库并将其添加到新创建的odoo中?

Yes, it is possible to reset the ssh-keys in an EC2 instance. 是的,可以在EC2实例中重置ssh-key。 You can find instructions how to do this from AWS documentation at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#replacing-lost-key-pair . 您可以在以下网址的 AWS文档中找到有关如何执行此操作的说明: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#replacing-lost-key-pair

Before doing this make sure you have an Odoo backup. 在执行此操作之前,请确保您具有Odoo备份。 You can use the Odoo web interface to create the backup so you do not need ssh access to server for that. 您可以使用Odoo Web界面创建备份,因此您不需要通过ssh访问服务器。

I have faced this ssh errors before and could be related to the change of the owner of the home user .ssh folder like /home/ubuntu/.ssh owner changed to another user like root or a deploy user. 我之前曾遇到过此ssh错误,并且可能与家庭用户.ssh文件夹(如/home/ubuntu/.ssh)所有者的所有者更改为另一个用户(如root或部署用户)有关。

Also you could make a backup at your Odoo instance URL, like: 您也可以在Odoo实例URL上进行备份,例如:

http://example.com/web/database/manager http://example.com/web/database/manager

Just replace http://example.com with your own address 只需用您自己的地址替换http://example.com

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM