ssh

Why can I connect to mysql through ssh -> mysql, but cannot connect through a ssh tunnel, address is bound to localhost(bind-address 127.0.0.1)?

坚强是说给别人听的谎言 提交于 2021-01-01 07:17:18
问题 I can connect to the server by ssh ( ssh #ssh_user#@#ssh_host# ) and then use mysql -u#db_user# -p#db_password# . Then I can use the mysql command line as usual, but I am trying to setup DBeaver so I have a client interface for it. Is it impossible to do when the bind-address is set to localhost? SSH tunnel settings host: #ssh_host# port: 22 user: #ssh_user# auth: (key) SSH tunnel itself works, I tried it with ssh -L 23:#ssh_host#:22 #ssh_user#@#ssh_host# 来源: https://stackoverflow.com

My JSch session doesn't execute command

末鹿安然 提交于 2021-01-01 06:37:37
问题 I'm trying to write a Java code that can ssh into a Unix server and reset a user's password. So I tried to implement some of the code found in SO. Eg. Sending commands to remote server through ssh by Java with JSch Take commands(password) from string and set as InputStream to Unix servers in Java (JSCH) Using JSch ChannelExec , I followed this link to get the proper command for resetting user's password. When I tried running this code, seems like it doesn't reset the user's password. So I

how to open a putty session using C#

戏子无情 提交于 2021-01-01 04:19:29
问题 I would like to know how to open putty using C# in Visual Basic express. Then execute commands through the ssh session. 回答1: What you actually need is an SSH component for .NET, capable of providing shell and command channel access to the remote host. Shell is what you see with PuTTY. You "type" the requests and get some response, which you need to parse then to separate responses from command prompt. Command channel is when the commands are sent one by one and you receive only response(s)

Cannot push to my github private repository

隐身守侯 提交于 2020-12-30 09:37:12
问题 As I'm learning git, I have set up a private repository on GitHub. I have created ssh key and store it to my GitHub account and edited .ssh/config file on my local Linux machine: ## github Host github.com User git HostName github.com IdentityFile ~/.ssh/github.key I can successfully connect to my GitHub account: $ ssh -T github Hi <UserName>! You've successfully authenticated, but GitHub does not provide shell access. I have initialized a git repository on my local machine, set up user and

Cannot push to my github private repository

两盒软妹~` 提交于 2020-12-30 09:37:07
问题 As I'm learning git, I have set up a private repository on GitHub. I have created ssh key and store it to my GitHub account and edited .ssh/config file on my local Linux machine: ## github Host github.com User git HostName github.com IdentityFile ~/.ssh/github.key I can successfully connect to my GitHub account: $ ssh -T github Hi <UserName>! You've successfully authenticated, but GitHub does not provide shell access. I have initialized a git repository on my local machine, set up user and

Cannot push to my github private repository

本秂侑毒 提交于 2020-12-30 09:36:16
问题 As I'm learning git, I have set up a private repository on GitHub. I have created ssh key and store it to my GitHub account and edited .ssh/config file on my local Linux machine: ## github Host github.com User git HostName github.com IdentityFile ~/.ssh/github.key I can successfully connect to my GitHub account: $ ssh -T github Hi <UserName>! You've successfully authenticated, but GitHub does not provide shell access. I have initialized a git repository on my local machine, set up user and

Slow upload of many small files with SFTP

家住魔仙堡 提交于 2020-12-30 03:01:11
问题 When uploading 100 files of 100 bytes each with SFTP, it takes 17 seconds here ( after the connection is established, I don't even count the initial connection time). This means it's 17 seconds to transfer 10 KB only, i.e. 0.59 KB/sec! I know that sending SSH commands to open , write , close , etc. probably creates a big overhead, but still, is there a way to speed up the process when sending many small files with SFTP? Or a special mode in paramiko / pysftp to keep all the writes operations

Slow upload of many small files with SFTP

老子叫甜甜 提交于 2020-12-30 03:01:05
问题 When uploading 100 files of 100 bytes each with SFTP, it takes 17 seconds here ( after the connection is established, I don't even count the initial connection time). This means it's 17 seconds to transfer 10 KB only, i.e. 0.59 KB/sec! I know that sending SSH commands to open , write , close , etc. probably creates a big overhead, but still, is there a way to speed up the process when sending many small files with SFTP? Or a special mode in paramiko / pysftp to keep all the writes operations

Slow upload of many small files with SFTP

核能气质少年 提交于 2020-12-30 03:00:21
问题 When uploading 100 files of 100 bytes each with SFTP, it takes 17 seconds here ( after the connection is established, I don't even count the initial connection time). This means it's 17 seconds to transfer 10 KB only, i.e. 0.59 KB/sec! I know that sending SSH commands to open , write , close , etc. probably creates a big overhead, but still, is there a way to speed up the process when sending many small files with SFTP? Or a special mode in paramiko / pysftp to keep all the writes operations

Python code crashes with “cannot connect to X server” when detaching ssh+tmux session

ⅰ亾dé卋堺 提交于 2020-12-29 04:09:36
问题 I run Python code on a remote machine (which I ssh into) and then use Tmux. The code runs fine UNTIL I disconnect from the remote machine. The whole point of my connecting via Tmux is so that the code continues to run even when I'm not connected to the remote machine. When I reconnect later, I have the error message: : cannot connect to X server localhost:11.0 Does anyone have an idea why this is happening or how I can stop it? 回答1: cannot connect to X server localhost:11.0 ...means that your