Questions tagged [ssh2]

136 questions
2
votes
0 answers

Rust ssh2 download using scp

I've spent the day trying to use ssh2 to download a file by using scp. To test this I've set up a OpenSSH server on my localhost on port 22 and created some dummy files for the program to copy from one location to another. I'm running this on…
threefifty
  • 21
  • 3
2
votes
1 answer

composer: command not found in phpseclib SSH2

I have connected with my server using phpseclib and I want to run 3 commands in a particular folder but I am facing several issues in this library. 1 I am getting stdin: is not a tty bash: error after every command.I did google and found a…
Hasan Hashmi
  • 71
  • 2
  • 6
2
votes
1 answer

ssh2_scp_send file is not copied, no errors

Though connection works ssh2_scp_send is not copying file (pdf). To check connection I checked if source file is existent and I also tested and used successful: - ssh2_sftp_mkdir - ssh2_scp_recv Here is my php code: $my_sftp =…
labby
  • 31
  • 3
2
votes
1 answer

How to generate SSH-Key compatible to SSH2

I want to make an aws lambda function which connects to a server via ssh and private key authentication. I am using the simple-ssh node module which uses the ssh2 module as base. I tried using OpenSSH and RSA format for generating a key pair but…
Laobiz
  • 339
  • 1
  • 5
  • 14
2
votes
1 answer

duplicate data output in node ssh2 client

i have a simple intaeractive ssh client using ssh2 npm module and readline. On each line i sending data to server stream, but for some reason entered command sends too var Client = require('ssh2').Client; var readline = require('readline') var conn…
Max Max
  • 389
  • 1
  • 2
  • 12
1
vote
0 answers

How to make the screen in linux live in php?

ConnectwAuth($serverinfo["MachIP"],(int)$serverinfo["MachPort"],$serverinfo["MachUser"],$serverinfo["MachPass"])) { $icerik = stream_get_contents($ssh2->Exec('cd '.$serverinfo["ServerPath"].';…
gorkem
  • 13
  • 2
1
vote
0 answers

ssh2 nodejs stops the streaming after 4096 length string

I have an issue with ssh2 library in Node.js. I'm trying to run a command on some host in ssh, using this libaray. The host's response may be long, so when it cross the 4096 length of chars in the respose string, it stops the data streaming, so I…
Naor
  • 337
  • 1
  • 3
  • 11
1
vote
0 answers

why can't i import ssh2-python module

from ssh2 import Session Traceback (most recent call last): File "C:\Users\saluc\AppData\Local\Temp\ipykernel_20116\996579583.py", line 1, in from ssh2 import Session ModuleNotFoundError: No module named 'ssh2' (base) C:\WINDOWS\system32>pip…
saluc
  • 31
  • 2
1
vote
1 answer

PHP : SFTP access through a SSH tunnel : possible?

- ORIGINAL MESSAGE - I need to access to a SFTP server but the PHP server is not directly connecting to internet. I think making connection through a SSH tunnel. AppServer → AdminServer → SFTP My PHP Server → SSH…
BeWog
  • 33
  • 7
1
vote
0 answers

why do i keep getting this Error when accessing server via ssh2?

I have a cronjob set up, which accesses a myslq database on a different server. The connection and data transfer work fine but everytime i get the following error: node:events:342 throw er; // Unhandled 'error' event ^ Error: write…
Niklas
  • 11
  • 1
1
vote
1 answer

Run npm run start:dev produce ERROR "Cannot find module 'ssh2-streams'"

I am working with docker Nodejs application in Linux Mint 20 OS, and I can run the docker-compose successfully. But when trying to start the application with npm run start:dev it starts watching and then showing the following…
dave_ag
  • 21
  • 2
1
vote
0 answers

script provisioning olt huawei ssh2 with python

I need to send commands to Huawei olt Software (MA5801). With ssh2 on my script python, I am connecting but the terminal says this: Huawei Integrated Access Software (MA5801).Copyright(C) Huawei Technologies Co., Ltd. 2002-2019. All rights…
1
vote
0 answers

NodeJS SSH2 / SFTP Handshake Timeouts

I can connect to the remote SFTP server fine through FileZilla, and have determined the remote server uses the following: diffie-hellman-group1-sha1 ecdh-sha2-nistp521 aes256-ctr ecdsa-sha2-nistp521 I am trying to connect to it using the NPM…
Jim Dover
  • 593
  • 2
  • 12
  • 30
1
vote
0 answers

how do I use npm module ssh2 to tunnel a port

I have a working node.js Server that uses a socket.io websocket connection and ssh2 connection to open a shell and return it to a react client in the browser that uses xterm-for-react. I'm now trying to also tunnel a port over the same ssh…
molkron
  • 69
  • 1
  • 5
1
vote
1 answer

nodejs REPL has piping issues when preview is on

I'm trying to have a node.js eval piped to a ssh2 stream. And I'm having some interesting issues. Mainly how either ssh2 or ssh clients interpret the data. Let's take a look. when you run the node process, you get this nice prompt so this is how my…
Rainb
  • 1,965
  • 11
  • 32
1
2
3
8 9