Questions tagged [ssh]

We do not provide general SSH support here. For help with support questions, please visit ssh. SSH (Secure Shell) is a secure network protocol used for encrypted data communication. If you have programming questions specific to Secure Shell, feel free to use this tag. However, any common authentication and configuration issues are not suitable topics for discussion on Newtab Q&A.

NPM continues to run smoothly in support of the Hastebin server operations

I have set up Hastebin at /var/www/paste/hastebin/ To initiate the NPM server, I need to navigate to the hastebin directory and then execute: npm start This command starts the server with the following output: # npm start > <a href="/cdn-cgi/l/e ...

Enabling permissions on a Linux Apache server to execute a Python script through PHP

Recently, there has been quite a bit of discussion surrounding this topic and I have immersed myself in research over the past few days. When running the PHP script that executes the Python script from the command line, everything functions properly (show ...

Managing various private npm repositories from Github on a single server

Currently, I have a node application hosted on GitHub within a private repository. In addition to the main application, there are custom modules that have been developed separately and stored in their own private repositories. Here is an example URL for t ...

Secure shell access to Amazon EC2 using PHP

When I try to run a PHP script connecting from my local Ubuntu Linux machine to an EC2 instance using SSH, it executes fine when run from the terminal and writes the tailed entries in a file. However, when I try to run it from a browser, I encounter the fo ...

Execute commands in Paramiko from a list or dictionary, then store the output in another list or dictionary

Is it possible to pass a list or dictionary to the exec_command function in Paramiko and store the results in another list or dictionary? A sleep command is required between each exec_command call. The commands are not executed sequentially, but rath ...

Error encountered while attempting to transfer files using scp in a program due to insufficient

Whenever I attempt to download a file from a server, I encounter an issue. Executing the command through a shell works fine; however, when trying to run it from code, I receive a permission denied error. scp user@host:path localpath password The code sn ...

Establishing a secure connection between MongoDB and my Node application using SSH

I'm currently trying to connect my node app with my DigitalOcean DB. Despite using a npm package called tunnel-ssh, I am facing difficulties establishing the connection. The code snippet I am working with is provided below. Although the message "DB connec ...

Whenever I attempt to run 'npm run build', I consistently encounter an error

I'm currently in the process of creating a website using React and Next.js. All my files are uploaded to a hosting platform, and I've successfully connected to it via SSH. However, when attempting to run the command 'npm run build', I encounter an error. ...

Muffling SSH Connection Output with Pexpect

I have a pexpect script that connects via SSH to a remote server and retrieves a value from a command. Is there a way, using pexpect or SSH, to bypass the standard Unix login message? In other words, how can I extract the returned value without being affec ...

Develop a webpage that can connect to and make alterations to a file stored remotely?

My search for a solution to my specific problem has been challenging due to the general nature of the terms and results in online searches. Frequently travelling, I find myself in locations where internet access on shared computers is limited to browsing ...

Script using PHP to remotely connect to a Linux server and run a Bash script

Currently, I am facing a challenge where I need to execute shell commands on our remote servers using PHP. The main goal is to install scripts through bash by having PHP execute these scripts on the server remotely. However, I have encountered an issue wh ...

Performing a git pull command through a PHP script

While attempting to implement the Perfect Workflow using Git, GitHub, and SSH, I encountered an issue with running the command git pull from PHP. Executing exec('git pull') resulted in the following error: Could not create directory '/.s ...

Is it possible to clone a private GitHub repository using a non-root user within a Docker container?

My current task involves installing a private repository npm package via GitHub: npm install --save-dev MyCompany/MyRepository#my-branch So far, installation on my local system has been successful. However, our setup utilizes docker-compose to manage all ...

What steps should I take to ensure npm properly sets the HOME environment variable while executing git commands?

My Windows operating system is configured with a HOME environment variable that points to the folder C: om. When I use git from the command line and it uses ssh, it correctly looks for the ~/.ssh or $HOME/.ssh folder, which in this case refers to C: om ...

Ensuring Django runserver remains active even after SSH connection is terminated

Currently, I'm facing challenges with getting Apache to work with my Django app. As a temporary solution, I am using runserver on my Linux server to demonstrate the app. The issue arises when the SSH connection is closed, as the runserver stops running. Is ...

Deploying applications on a distant computer using a Python script

For my current project, I am attempting to remotely install an "environment" on a machine using a Python script. This particular environment requires the user name and password to be passed to it. Despite trying various approaches, I have not been successf ...

Issue: Unable to authenticate the initial certificate following the configuration of an id_rsa

Upon executing the commands below, I encountered an error while trying to start a nextJS app: ssh-keygen -t rsa -C "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2afbba7afa3abae82a7baa3afb2aea7eca1adaf">[email pr ...

Leveraging an SSH key to securely install an npm module from a private repository within a Docker

My role involves creating containers for nodejs projects. Within these projects, I utilize a private repository and require access to it. To achieve this, I have implemented the following Dockerfile: FROM node:15 RUN echo "StrictHostKeyChecking no&qu ...

Interpreting user input from the terminal with Node.js

Having an ssh2 server, I aim to extract the entered commands and parse them. Presently, I am relying on the readline module for this task. However, it tends to output special characters when backspace is used. My intention is not to capture every keypress ...

Experiencing issues with running npm commands on Plesk Onyx utilizing Node.js via SSH

After installing node.js on Plesk Onyx through the Plesk extension manager, I attempted to install the node.js driver for MongoDB using npm via SSH. However, I'm encountering issues with npm commands not being recognized. I can confirm that Node.js i ...