Open SclerA-prog opened 1 year ago
I successfully established a tunnel from remote machine to local machine. But when I am trying to connect to the tunnel using local machine. I am getting permission denied error.
from sshtunnel import SSHTunnelForwarder import time
local_username = 'hhhh' local_port = 22
remote_username = 'eeee' remote_port = 22022 remote_host = '1.1.1.1' remote_password = 'aqerer'
server = SSHTunnelForwarder( remote_host, ssh_username=remote_username, ssh_password=remote_password, remote_bind_address=('localhost', remote_port), local_bind_address=('localhost', local_port) ) server.start()
print(server.local_bind_port) # show assigned local port
SECRET SERVICE
server.local_bind_port
time.sleep(600)
server.stop()
Could you please provide some logs?
I successfully established a tunnel from remote machine to local machine. But when I am trying to connect to the tunnel using local machine. I am getting permission denied error.
from sshtunnel import SSHTunnelForwarder import time
Local machine information
local_username = 'hhhh' local_port = 22
Remote machine information
remote_username = 'eeee' remote_port = 22022 remote_host = '1.1.1.1' remote_password = 'aqerer'
server = SSHTunnelForwarder( remote_host, ssh_username=remote_username, ssh_password=remote_password, remote_bind_address=('localhost', remote_port), local_bind_address=('localhost', local_port) ) server.start()
print(server.local_bind_port) # show assigned local port
work with
SECRET SERVICE
throughserver.local_bind_port
.time.sleep(600)
server.stop()