ssh

Triggering jenkins build over ssh?

倾然丶 夕夏残阳落幕 提交于 2021-02-19 04:50:26
问题 I'm trying to trigger a Jenkins build from a USS (unix on z/os) git repository. The jenkins server is running in tomcat on my local windows machine. Most examples on the web describe a solution like this: http://www.andyfrench.info/2015/03/automatically-triggering-jenkins-build.html and I managed to get that working on my home pc from a local windows-based git repo to my locally running jenkins server. Basically, this involves creating a post-commit hook and invoking a special Jenkins git

Why won't cygwin read the .ssh/config file in my home directory?

半腔热情 提交于 2021-02-19 02:50:51
问题 I am using cygwin and I am trying to set up an .ssh/config file. Cygwin's folder is in my C: drive. My Home directory is C:\Users\USER. I have noticed that when I edit C:\Users\USER.ssh\config, cygwin does not even notice it (even though it notices the other files I have in my USER folder, i.e. .bashrc). But it does notice the config file if I put it in C:\cygwin64\home\USER.ssh\config. Is there a way to get cygwin to read the .ssh folder in my USER home directory instead? 回答1: Make sure your

Can't login via SSH key using Python [duplicate]

旧街凉风 提交于 2021-02-18 19:10:29
问题 This question already has answers here : How to ssh connect through python Paramiko with ppk public key (4 answers) Closed 6 months ago . I am trying to login via ssh in my server using python. I have generated key using putty. when i using this key in putty, its working fine. but when i am trying to connect from python it's saying authentication failed import paramiko router_ip = "157.230.16.214" router_username = "root" ssh = paramiko.SSHClient() # Load SSH host keys. ssh.load_system_host

Can't login via SSH key using Python [duplicate]

本小妞迷上赌 提交于 2021-02-18 19:10:10
问题 This question already has answers here : How to ssh connect through python Paramiko with ppk public key (4 answers) Closed 6 months ago . I am trying to login via ssh in my server using python. I have generated key using putty. when i using this key in putty, its working fine. but when i am trying to connect from python it's saying authentication failed import paramiko router_ip = "157.230.16.214" router_username = "root" ssh = paramiko.SSHClient() # Load SSH host keys. ssh.load_system_host

Can't login via SSH key using Python [duplicate]

别来无恙 提交于 2021-02-18 19:09:41
问题 This question already has answers here : How to ssh connect through python Paramiko with ppk public key (4 answers) Closed 6 months ago . I am trying to login via ssh in my server using python. I have generated key using putty. when i using this key in putty, its working fine. but when i am trying to connect from python it's saying authentication failed import paramiko router_ip = "157.230.16.214" router_username = "root" ssh = paramiko.SSHClient() # Load SSH host keys. ssh.load_system_host

How to list all subdirectories and files using nodeJS?

喜夏-厌秋 提交于 2021-02-18 17:49:16
问题 Using node ssh2-sftp-client, I'd like to recursively list all directories (and in a second time, files) of a SSH-remote directory root. I'm using nodejs node v12.15.0 I've found a usefulness same but non answered StackOverflow question. Documentation "basic usage" (see ssh2-sftp-client) gives a standard use of sftp connection and list of directory '/tmp' : const Client = require('ssh2-sftp-client'); const sshConfig = { host: process.env.REMOTE_SSH_HOST, port: 22, username: process.env.REMOTE

Create a SSH private key with ssh-keygen that is accepted by JSch [duplicate]

孤人 提交于 2021-02-18 12:47:08
问题 This question already has answers here : “Invalid privatekey” when using JSch (6 answers) Closed 1 year ago . Not directly a programming question, but somehow related. JSch (Java SSH library) does not seem to allow private keys that macOS 10.14 creates using $ ssh-keygen -t rsa -b 4096 What command I should use to create a private key file with such a format: -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,.... which is accepted by JSch? 回答1: You seem to need a

Restricting JMX to localhost

♀尐吖头ヾ 提交于 2021-02-18 02:48:00
问题 While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a local interface and netstat shows them listening on any/all interfaces. http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html#gdevf I have to admit I am bewildered

Restricting JMX to localhost

情到浓时终转凉″ 提交于 2021-02-18 02:45:08
问题 While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a local interface and netstat shows them listening on any/all interfaces. http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html#gdevf I have to admit I am bewildered

Getting “Received too large SFTP packet” when logging in with Root using WinSCP to Google Compute Engine virtual machine instance

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-17 19:12:38
问题 Hi I can login to the GCE VM with WinSCP using my own username, cannot login as root...this is by default according to Google, and can be changed. Changed like this: Step 1: Login SSH and Su Root # sudo su root Step 2: Change password Root #passwd root Step 3: Config SSHD allow Root login #nano /etc/ssh/sshd_config PermitRootLogin yes PasswordAuthentication yes #service sshd restart (I used ssh as I'm using ubuntu and sshd wouldn't work) Tried to login as root via WinSCP but I get "Received