更改 Amazon EC 2 & 中实例的 root 密码网络敏

发布于 2024-10-30 22:07:47 字数 220 浏览 1 评论 0原文

我在 Amazon EC2 系统管理员的帮助下建立了一个网站。下班后,他给我安装了一个Webmin来处理控制面板之类的事情。现在我需要重置所有内容的密码以确保安全。为此:

(a) 我已从 Webmin 界面更改了所有用户密码,包括 root 用户 (b) 更改与 EC2 帐户关联的密码。

但是EC 2实例的密码需要修改吗?或者当我从 Webmin 编辑 root 用户的密码时它已经改变了?

I have set up a website with the help of a System Admin on Amazon EC2. After the work, he installed a Webmin for me to handle the things like Control Panel. Now I need to reset the password for everything to keep things secure. For this:

(a) I have changed all users password including root user from Webmin interface
(b) Change the password associated with EC2 account.

But do it need to change the password of the EC 2 instance? Or it is already changed when I edited the password of the root user from Webmin ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一场春暖 2024-11-06 22:07:47

不,实例的密码与亚马逊的密码无关。因此,您最好使用密钥对而不是密码。

No, the password of the instances are unrelated to those of the amazon passwords. You'd be better of using key pairs than passwords for this reason.

┾廆蒐ゝ 2024-11-06 22:07:47

@HirenSagar 给出的答案是正确的。

如果没有密码,您将无法访问您的 webmin 实例。

默认情况下,EC2 实例没有密码。

但是您可以通过手动为您的 webmin 设置密码和用户来避免这种情况。

首先更新您的 apt:

sudo apt-get update

然后:

sudo /usr/share/webmin/changepass.pl /etc/webmin root yourpassword

Root 是 webmin 用户和密码是它的密码。

The answer given by @HirenSagar is correct.

You cannot access your webmin instance without a password.

EC2 instances dont have passwords by default.

But you can side-step that by manually setting a password and user for your webmin.

First update your apt:

sudo apt-get update

Then:

sudo /usr/share/webmin/changepass.pl /etc/webmin root yourpassword

Root is the webmin user and password is its password.

醉态萌生 2024-11-06 22:07:47

我认为您应该更改实例的密码,这将保护您的数据免受黑客攻击。请为您的实例设置一个强密码。密码应由大写字母(A、B、C、D)、小写字母(a、b、c、d)、数字(1、2、3、4)和特殊字符(@、#、& ;)。弱密码很容易被黑客破解。

您可以通过登录 AWS 控制面板来更改实例的密码:

Step 1: Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Step 2: In the navigation pane, choose Instances and then choose the instance that needs a password reset. ...
Step 3: Choose Actions, Instance Settings, Get System Log.
Step 4: Locate the EC2 Agent entry, for example, EC2 Agent: Ec2Config service v3.18.1118.

I think you should change the password of your instance it will protect your data from the hacker. Please set a strong password for your instance. A password should be a combination of uppercase letter (A,B,C,D), lowercase letter (a,b,c,d), numbers (1,2,3,4) and special character (@,#,&). A weak password is easily hacked by the hacker.

You can change the password of your instance by login into your AWS control panel:

Step 1: Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Step 2: In the navigation pane, choose Instances and then choose the instance that needs a password reset. ...
Step 3: Choose Actions, Instance Settings, Get System Log.
Step 4: Locate the EC2 Agent entry, for example, EC2 Agent: Ec2Config service v3.18.1118.
蓝天 2024-11-06 22:07:47

您好,您无法更改 EC2 的密码,当您从 AWS 创建 EC2 实例时,它有一个密钥对(.pem 文件通过 putty 密钥生成器转换 .ppk 文件),
确保您必须从安全组(AWS-EC2-入站规则)对您的 IP 地址进行 SSH 评估,然后您可以从 putty 进行 SSH 并管理 Ubuntu 终端
用户名Ubuntu,如果创建则通过或上传ppk以打开终端,
登录后,
如果你想重置或更改 webmin 的密码
你应该尝试这个

1 sudo apt-get update
2 sudo /usr/share/webmin/changepass.pl /etc/webmin root yourpass;
3 须藤/etc/init.d/webmin重新启动

hi u could not change password of EC2, It has a Keypair, (.pem file to convert .ppk file through putty key generator) when u created EC2 instance From Aws,
make sure you have to give SSH Assess to your ip Address From Security Group (AWS-EC2-Inbound rules) then you can SSH from putty and manage Ubuntu terminal
User name Ubuntu, pass if created that or upload ppk for open terminal,
after login,
if u wann reset or change pass of webmin
you should try this

1 sudo apt-get update
2 sudo /usr/share/webmin/changepass.pl /etc/webmin root yourpass;
3 sudo /etc/init.d/webmin restart

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文