Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I connect to Sqlite3 database over SSH using Python?

I need to connect to a Sqlite3 database in Linux box over SSH. I tried to connect through SSH and then connect to database separately but that did not work. That only connected to the Linux box but made another database (instead of connect) in local computer where Python is running. I tried to search for but could not find any solution to this. Any help is appreciated!

like image 915
Hossain Avatar asked Oct 17 '22 13:10

Hossain


1 Answers

If you can forward the SQLite3 port, you can point python to the forwarded port and it will just work. You may want to set up rqlite to expose your sqlite3 database over TCP easily.

like image 117
hd1 Avatar answered Oct 20 '22 23:10

hd1