skip to Main Content

sshtunnel is not using specified key and not using private key password – Mysql

I'm writing a script that needs to connect to a MySQL server via SSH. I have the following: import mysql.connector from sshtunnel import SSHTunnelForwarder def query_mysql_server(query): with SSHTunnelForwarder( ('ssh_server_ip', 22), ssh_username='sshuser', ssh_pkey='/Users/myhomedir/.ssh/id_rsa', ssh_private_key_password='my_ssh_key_passphrase', remote_bind_address=('127.0.0.1', 3306) ) as server: conn =…

VIEW QUESTION

Load key "/root/.ssh/pipelines_id": invalid format – Ubuntu

I am using bitbucket pipeline to deploy app on a ec2-server. here is my bitbucket-pipelines.yaml file image: atlassian/default-image:3 pipelines: branches: dev: - step: name: automated deployment script: - pipe: atlassian/scp-deploy:1.2.1 variables: USER: 'ubuntu' SERVER: $SERVER_IP REMOTE_PATH: '/home/ubuntu/utags-test/server' LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*' -…

VIEW QUESTION
Back To Top
Search