Console Access
How to get Server Access:
For f7-mumbai.frappe.cloud
- Open User SSH Certificate List.
- Create User SSH Certificate for the server you want access to, in this case
f7-mumbai.frappe.cloud
. - Fill details such as server name, reason for accessing the server, validity period for eg. 6 Hrs.
- Click on Copy Certificate Details, it will copy the certificate in the clipboard and then paste it in your terminal.
- Now click on Copy SSH Command, it will copy the SSH command in the clipboard and then paste it in your terminal.
- You should be able to access the frappe user in
f7-mumbai.frappe.cloud
server.
How to get Bench Console Access:
For bench-0032-000631-f1
For old style benches:
$ ssh f1.frappe.cloud -l frappe
frappe@f1:~$ docker container ls | grep bench-0032-000631-f1 | grep web
For new style benches:
$ ssh f1.frappe.cloud -l frappe
frappe@f1:~$ docker container ls | grep bench-0032-000631-f1
This would show an output similar to
ad8b1b6ac859 registry.frappe.cloud/production/frappe.cloud/bench-0032:deploy-0032-000631 "/home/frappe/frappe…" 12 days ago Up 12 days 8000/tcp bench-0032-000631-f1_web.1.dwwpbeewfsxsakcsl3o3anyxp
The first string in the output is the container ID and you can use it with docker exec. e.g.
frappe@f1:~$ docker exec -it ad8b1b6ac859 bash
Which will drop you in the sites directory of the bench
frappe@ad8b1b6ac859:~/frappe-bench/sites$
frappe@ad8b1b6ac859:~/frappe-bench/sites$ cd ..
frappe@ad8b1b6ac859:~/frappe-bench$ ls
apps config env logs sites