Then, copy the Database Connection URL they provide, and paste it in a new tab. To see your Forge-created database in TablePlus, open your server in Forge’s appp and click Database in the sidebar. This also enables you to connect to the database that’s on your server. What this allows you to do is to run ssh from your computer’s terminal, and to be authorized to log into your server. Then, I clicked the button to have this SSH key uploaded to my servers. The cat command shows you what’s inside a file, and I know my default SSH key is stored in the ~/.ssh folder of my computer, and the public key is named id_rsa.pub.Īfter running that cat command, I get an output like this: ssh-rsa AAAAB3NzvC1yc2EAAAADAQABAAABgQCghwKGzDYZaud0OmvvouKI3hT+QrYkv4VWjfRkrXBjbnTNIpVevVdva95YVW6YWLfzdVrK5IhTW8nTWHYGk7/dZ/kHWI3CzB25dkxD5RMRrwlA+fBJgWR8Cg1frmq16skc42LhRVnVymY14kxhyzia695DFde8a7jBp1WBXnA9YgipADC0ax9N0ONBognY+axvEx8vdOWzyvkdVRBaCV9pU+aepvC537D3J7ebXsKbFHtzVvcWkrX5/ZX3qMnBF2EfbfKcsqCOdx7+jhVDXamxeBQpkMevUx9EQzFlV9ST3gvzjr7ATeTST2TgIhY+EBlPa+RcGOqd62574cXGuzCvZ9x1smEIkN3V6H/Jdms5W8MXd9r2TgxsLoZekABoRVwrJcFF+A968tJRtAakr3aJz1G2+20fzkcgalPFX6W8riE9CKCmPu68apHvvja/uBVs0L8vR9XTPu2jz2gR2Ph+StEBvurWUpbRxI2DJvVa0QRfz4gzxRRXR5cskzcLIE= copied that public key and went to Laravel Forge’s Account Settings > SSH Keys and pasted it in. On my Mac, I did this by running this command: cat ~/.ssh/id_rsa.pub Now, you’ll want to copy and paste your public SSH key. If you haven’t generated SSH keys on your computer, you can follow these instructions. It took a bit to figure out where to put which passwords, so I thought I’d write a blog post about it.įirst, you’ll want to have your computer’s SSH keys uploaded to Forge, so your computer can log into the server that Forge created. I recently started working with Laravel Forge, and wanted to connect to a production database from my local computer, using TablePlus.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |