Skip to content

Sample code to reproduce ssh problem

Notifications You must be signed in to change notification settings

nabe1653/pgadmin4-ssh-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgadmin4 ssh connection sample

Setup log

### Build image and run docker container
> docker compose -f server-compose.yml up -d

### Check default storage permission
> docker exec --user root pgadmin_pga ls -al /var/lib/pgadmin/storage/postgres_example.com/
drwx------    3 pgadmin  root          4096 Apr  1 05:47 ..
-rw-r--r--    1 pgadmin  root           419 Apr  1 06:20 pg-test

### Change shared-storage permission as same as default personal storage
> docker exec --user root pgadmin_pga chown -R pgadmin:root /mnt/storage/
> docker exec --user root pgadmin_pga chmod -R 644 /mnt/storage/
> docker exec --user root pgadmin_pga chmod 700 /mnt/storage/
> docker exec --user root pgadmin_pga ls -al /mnt/storage/
drwx------    1 pgadmin  root           512 Apr  1 02:51 .
drwxr-xr-x    1 root     root          4096 Apr  1 05:43 ..
-rw-r--r--    1 pgadmin  root           419 Apr  1 02:35 pg-test

### Start sshd ###
> docker exec -t pgadmin_db bash -c "/usr/sbin/sshd -D"

About

Sample code to reproduce ssh problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published