I am aware that SQLite works well for an embedded system but I am trying to set up a database system with different types of database such as MySQL, through API and SQLite.
The problem is that SQLite data files are stored in Ubuntu server and I want to connect remotely by using its ssh path from a user's computer.
I have tried to connect with paramiko which was successful to execute general command like 'ifconfig'. However, when I execute SQLite command, it didn't work.
import paramiko
cmd = 'ifconfig'
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(remote_ip, username =username, password=pw, port=port)
(stdin, stdout, stderr) = ssh.exec_command(cmd)
Is there any way to directly write an ssh path to connect?
The example Code is below:
import sqlite3
conn = sqlite3.connect('example.db')