更改 Amazon EC 2 & 中实例的 root 密码网络敏
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不,实例的密码与亚马逊的密码无关。因此,您最好使用密钥对而不是密码。
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.
@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.
我认为您应该更改实例的密码,这将保护您的数据免受黑客攻击。请为您的实例设置一个强密码。密码应由大写字母(A、B、C、D)、小写字母(a、b、c、d)、数字(1、2、3、4)和特殊字符(@、#、& ;)。弱密码很容易被黑客破解。
您可以通过登录 AWS 控制面板来更改实例的密码:
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:
您好,您无法更改 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