AWS Marketplace /home and SSH questions
AnsweredI'm trying to migrate my cPanel server from Hyper-V to AWS
I abandoned trying use the image I extracted from Hyper-V because AWS couldn't boot it after cPanel updated the kernel.
So throwing away the work that went into that I decided to start from scratch using the AWS market place product.
I now face 2 new problems -
1) No matter what I do, I can't SSH to the server. In sshd_config I've set
PermitRootLogin yes
PasswordAuthentication Yes
AllowUsers root
I've restarted sshd, but when I try to connect, I get the message.
no supported authentication methods available (server sent publickey, gssapi-keyex, gssapi-with-mic)
2) I have 100Gb of storage that I want to use for the /home partition, but the /home partition already exists, containing /ec2-user and what looks like a bunch of installation files.
Can I safely delete all of this and mount /home with my storage? I don't want to have to rewrite my applications to use /home2 or some other path.
-
I've fixed the first problem
sshd_config contained this line
Include /etc/ssh/sshd_config.d/*.conf
and in that folder was a file called 50-cloud-init.conf that had PasswordAuthentication set to no. I changed that to yes and now I can connect
0 -
Fixed the second problem by ...
mounting my storage under a different mount point
rsyncing the existing /home to it
renaming /home to /home_old
unmounting my storage and remounting it as /home0 -
I'm glad you were able to get those resolved, especially since I wouldn't have been much help with either issue :D
0
Please sign in to leave a comment.
Comments
3 comments