Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

midascodebreaker's avatar

How to SSH in Forge?

this must be a very silly question but i think im lost.

I managed to Create a Server in Forge

But Before i Already Had the rsa_id rsa_id.pub file for my local development in my pc

How can i do and SSH in my forge server any help would be appreciated

0 likes
8 replies
bashy's avatar

You can SSH into the server with the password? Should get it in an email I believe.

michaeldyrynda's avatar
Level 41

Add your existing public SSH key from rsa_id.pub to the Server > Manage > SSH Keys section, then configure your SSH client to use rsa_id when connecting to your server with the forge user.

2 likes
bashy's avatar

@deringer Does it add it to the server automatically on adding the public key to Forge?

manshu's avatar

I've the same question. I never received email from forge for any password.

midascodebreaker's avatar

forge usually has the login details of the password username is normally forge and password is random so as database .. i can login to server in putty using the credentials but i want to use ssh i dont want to type password anymore.

What will i do , if i have a local rsa_id and rsa_id.pub Do i need to upload the key by loging in my server then make a folder and file

hope they add this in laravel documentation in the section production server.

@deringer i manage to paste the key the format i pasted is like below in SSH KEY tab

ssh-rsa RandomString email@email.com

Now how to Configure SSH client to use rsa_id when connecting to your server with the forge user?

midascodebreaker's avatar

im already logged in using ssh key in my server. i think it is automatically making the all the magic when you add rsa_id.pub in your SSH key in forge thanks

michaeldyrynda's avatar

When you add an SSH key via Forge, it should automagically be appended to the /home/forge/.ssh/authorized_keys file, @bashy.

@xenxa, if you have SSH keys configured, your client will look for SSH keys in the (default) .ssh directory in your user's home directory.

Please or to participate in this conversation.