Questions tagged [ssh2]

136 questions
0
votes
0 answers

Connect to monetDb trough ssh tunnel

I am trying to connect to MonetDb database, unsuccessfully though :( I am trying to replicate this approach as much as I can. Here is the code: var MDB = require('monetdb')(); var Client = require('ssh2').Client; var ssh = new Client(); const…
Hairi
  • 3,318
  • 2
  • 29
  • 68
0
votes
1 answer

Can connect but cannot write via SFTP

I'm trying to write stuff via SFTP and something strange is happening. Here's a generic sample script: "); if (ssh2_auth_password($resConnection, "", '')){ //Initialize SFTP subsystem …
Gino Pane
  • 4,740
  • 5
  • 31
  • 46
0
votes
1 answer

NODEJS/SSH2 - Reconnect SSH Client to Server Fails: ADMINISTRATIVELY_PROHIBITED

Trying to create a generic abstraction of the SSH2 client (https://www.npmjs.com/package/ssh2) and running into issues when I disconnect and try to reconnect to an SSH server. Code so far is as follows... var ssh = require('ssh2'); function…
pure_bordem
  • 159
  • 3
  • 15
0
votes
1 answer

How to save file obtained by blob trigger to SFTP server with Azure Functon

I want to save file obtained by blob trigger to SFTP server with Azure Function. module.exports = function (context, myBlob) { context.log("JavaScript blob trigger function processed blob \n Blob:", context.bindingData.blobTrigger, "\n Blob…
0
votes
1 answer

VSCODE run gdb on remote server through proxy

I'm trying to use native debug (https://marketplace.visualstudio.com/items?itemName=webfreak.debug) extention in vscode to launch gdb on a remote server through ssh. It's working when I'm connecting directly to remote sever : { "version":…
0
votes
1 answer

How can I send password to ttys0 session inside ssh2 session using stream.write

I'm trying to talk to a console session inside of ssh2 session using a stream to configure some things on a machine. I am successfully able to send most data over stream.write but when it asks for password I always get 'login incorrect'. node…
Corey Manshack
  • 147
  • 2
  • 3
  • 10
0
votes
1 answer

async/await inside a for loop to access multiple servers using ssh2 do not work

I have this tool that access multiple servers using the npm library ssh2. I want to loop through all these servers to automate an alteration to a certain file inside all these servers. Here is the code snippet of what I have done so far. const c =…
R. Tienzo
  • 13
  • 3
0
votes
1 answer

Python3.5 ssh2-python installation

I am trying to install ssh2-python package to python3 (Raspberry PI 3 model B), OS: Linux system, kernel-release 4.4.38-v7+ Every time it crashes with error: 1, Failed building wheel for ssh2-python I tried: pip3.5 install ssh2-python pip3…
Petr Hovorka
  • 3
  • 1
  • 3
0
votes
0 answers

SSH2_Exec takes way too long to execute commands. - PHP

I am trying to execute a command on my VPS using SSH2, but for some reason, the first command always takes around 10 seconds to execute. The wierd part is that the rest of the commands, after the first one, get executed instantly after those 10…
Daniel
  • 11
  • 1
  • 1
0
votes
1 answer

How to upload file to SFTP over SSH2 with VBA without thirty part applications

I need a pure VBA solution for uploading files to SFTP over SSH2 I've found that common solution would be to use WINSCP, however environment restricts to use thirty part applications. I've tried to use FTP way, however it doesn't…
eugene
  • 71
  • 1
  • 8
0
votes
1 answer

How can I write a ssh2::Stream to a file without reading the data into memory?

I am trying to download a large binary file via SCP using ssh2 crate v0.3.3. extern crate ssh2; use std::net::TcpStream; use ssh2::Session; use std::path::Path; use std::fs::File; use indicatif::ProgressBar; fn main() -> Result<(),…
Joyce Babu
  • 19,602
  • 13
  • 62
  • 97
0
votes
1 answer

Cannot send commands to remote machine using ssh2-python package

Problem Hello my problem is that I want to use the ssh2-python package to remotely read a a bunch of files, but I can't seem to send commands to the remote host machine. Originally I started with the paramiko package and I did get that to work, but…
DMD
  • 1
  • 1
0
votes
0 answers

How to connect to an SSH server through php

I am fairly new to php and am currently working on a website for my university. What I am trying to do is make a log in page that allows a user to establish a connection to a remote SSH server and then run linux scripts all from wihtin php. So far,…
jl1126
  • 21
  • 1
  • 6
0
votes
1 answer

phpseclib NET/SSH2 pulling variable from post form

I'm trying to get POST variables into my $ssh->exec The post variables are not being used in the command.I want $domain and $password to be used within the adduser as below. I'm running this on a centos 7 server php 7.3 I can echo out variable but…
James
  • 43
  • 1
  • 5
0
votes
0 answers

Reading details from txt file in php

I have a txt file where my configuration detail is stored. confg.txt 10.xx.xx.xx abc P@ssword1 /home/user/myfolder I want this file detail for connecting to remote machine.
Ratnesh
  • 1,554
  • 3
  • 12
  • 28
1 2 3
8
9