if you configured your SSH key with a passphrase, you may need to do this first to unlock/add the key to your local ssh auth agent:
ssh-add -K ~/.ssh/forem
Using -k for Linux or -K for macOS.
Can you give that a try and see how it goes for you? Just to confirm, you should be using the key that you created under Step 5 of the Manual Installation before you run your playbook to create your instance.
The authorization is successful under the core user.
I have a large wordpress site. I want to migrate from wordpress to forem. But first, I need to create a website on forem, transfer all the information, make the necessary settings, and only then change the domain to the main one.
I understand that there is no solution to this problem yet? Maybe I can log into the site using the ip, not the domain? Or, for example, bypass the system by binding another domain (by editing DNS records). There must be another way out)
Please note that Forem is a complex piece of software, and hosting and managing it in a cloud environment is non-trivial. While the recipes and scripts here are expected to work for the limited scenarios we tested against, use and modification of the recipes, or altering the deployed environment, may require familiarity with the following layers of the tech stack we built with, and ongoing maintenance of the deployed system may require interacting with any of these technologies:
-Ansible
-Your chosen cloud provider - both CLI and UI use
-Python 3 and pip3
-systemd
-Podman
-General Linux administration, especially Fedora CoreOS, including:
-Butane
-Ignition
Thanks for the answer. I have experience using the terminal on linux. What password should I enter when using the command su ? Doesn't accept passwords
Domain change succeeded! After changing the domain, all images in articles and avatars were no longer displayed, since they refer to the old domain. Could you help me with this?
For further actions, you may consider blocking this person and/or reporting abuse
Hey @ellativity !
Maybe there is a more detailed instruction on how to log in as root to the server and run the command to change the domain?
I think many will be useful, thanks
Hey @varhal , as this is a question regarding Forem self-host, the instructions here are provided on the assumption that you've already figured out how to log into your server as root, based on the information provided in the Self-Host set up guide.
The instructions @jdoss provided in the issue, combined with the SSH examples in the Self-Host repo, detail exactly what it is you have to do.
Hey @ellativity , I read these instructions, the problem is that it is not authorized as root
ssh -i ~/.ssh/forem root@104.138.6.116
or
ssh -i /root/.ssh/forem root@104.138.6.116
Rusult
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Tried creating new keys and more, nothing helped
Hey @varhal , these are familiar errors. Let's see if we can figure out how to get past them:
@andygeorge has suggested in the past that
Using
-k
for Linux or-K
for macOS.Can you give that a try and see how it goes for you? Just to confirm, you should be using the key that you created under Step 5 of the Manual Installation before you run your playbook to create your instance.
I deleted Fedora CoreOS image from digitalocean and destroy droplet. Then I used the command on linux:
ssh-add -k ~/.ssh/forem
Result:
Identity added: /root/.ssh/forem
Then I started the playbook and created an instance. I tried to log in as root:
ssh -i ~/.ssh/forem root@143.198.19.221
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
The problem was not solved
Can you try logging in as
core
and see what happens?Also, if you destroyed your Droplet you could reconfigure your Forem with your chosen URL before rerunning the playbook.
That's one way around this issue, for now π
The authorization is successful under the core user.
I have a large wordpress site. I want to migrate from wordpress to forem. But first, I need to create a website on forem, transfer all the information, make the necessary settings, and only then change the domain to the main one.
Ah, I see! Thanks for clarifying.
And thanks for confirming that
core
works for you βΊοΈI understand that there is no solution to this problem yet? Maybe I can log into the site using the ip, not the domain? Or, for example, bypass the system by binding another domain (by editing DNS records). There must be another way out)
Sorry, @varhal , I understood that you had successfully logged in as
core
?Yes, i authorization is successful under the core user. But need under root user
I haven't tried these instructions for myself but I'm curious if you already tried to SSH using
core
instead ofroot
and thensu - root
?Please remember that Forem Self-host is intended to be self-administrated, so while we will assist you to use Forem we don't provide instructions on how to use Linux:
Thanks for the answer. I have experience using the terminal on linux. What password should I enter when using the command
su
? Doesn't accept passwordsI seem to understand how it works, thank you. I will write instructions for other users on how to change the domain if everything works out
You've got it? Hope this works out!
Hey @ellativity !
Domain change succeeded! After changing the domain, all images in articles and avatars were no longer displayed, since they refer to the old domain. Could you help me with this?