Smart way to copy multiple files from different paths using scp

I would like to know an easy way to use scp to copy files and folders that are present in different paths on my file system. The SSH destination server requests a password and I cannot put this in...

ZPanelcp , Domains activation not work

-Hello everyone , I just rent an a dedicated server (ubuntu 12.4) and i install apache + php, mySQL etc ...but using SSH to creat domains (virtual hosts) it is a litle bit laborer so I decided to...

How to make git diff write to stdout?

By default git diff prints all +- lines to the stdout however I have a (devian) machine (which I connect through ssh) where git diff leads me to an editor (which I don't know which is) and I need...

In Python, how to write a string to a file on a remote machine?

On Machine1, I have a Python2.7 script that computes a big (up to 10MB) binary string in RAM that I'd like to write to a disk file on Machine2, which is a remote machine. What is the best way to...

Google server putty connect 'Disconnected: No supported authentication methods available (server sent: publickey)

I'm trying to connect to my Debian Google Compute Engine server through PuTTy (I've tried other alternatives too) but when I do I get the error "Disconnected: No supported authentication methods...

Android Studio - Push failed: fatal: Could not read from remote repository

I have a git project at Android Studio and a remote at BitBucket and I changed it to use SSH instead of HTTPS. I can make everything work using Atlassian's SourceTree, but in Android Studio every...

ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]

I kept getting kicked out of my compute engine instance after a few seconds of idle with the indicated error (255). I used 'gcloud compute ssh' to log in. I am using the default firewall setting,...

Add SSH key for both github and bitbucket in single PC

Is it possible to use both the github and bitbucket repo in personal computer. if not, Let me know any other possibilities. Thanks in advance.

Checking for multiple conditions using "when" on single task in ansible

I want to evaluate multiple condition in ansible using when, here is my playbook: - name: Check that the SSH Key exists local_action: module: stat path: "/home/{{ login_user.stdout...

Tell git which SSH config file to use

I have multiple ssh config folders for various systems e.g.: ssh -F ~/.ssh/system-a/config [email protected] ssh -F ~/.ssh/system-b/config [email protected] Each folder has a config file and set of...

Connecting dbeaver to postgres hosted on remote server

We are using postgres db hosted two servers away, (pardon my jargon) we usually connect through terminal like: local =>(using google auth) ssh server 1 =>(using google auth) ssh server 2 => psql...

Segmentation fault (core dumped) when running testsuite

I randomly (and often) receive a Segmentation fault (core dumped) error when running phpunit (version 6.4.1) on a testsuite inside ssh of homestead. When I run one unit test at a time or run a...

Field authenticationManager in *** required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found

I have following class: @Configuration @EnableAuthorizationServer public class AuthServerConfig extends AuthorizationServerConfigurerAdapter { @Autowired private AuthenticationManager...

ufw compilation for azure cloud Ubuntu VM

I have a cloud Ubuntu VM which is in some resource group of company's subscription. I do not have access to azure portal. I had opened up the ports whichever relevant in azure portal while...

Changing EC2 pem file key pair when you have access to the EC2 instance

thank you for your time. I have an EC2 instance, but for security reasons i need to change the pem files associated in .ssh/authorized_keys. I do understand that the public pem file goes into...

Docker container killed after Ctrl +C

I have a nginx and php-fpm containers. When I'am in my php container in a projet and I exec any command (like vendor/bin/behat or composer update) who takes time and I click on CTRL+C. I'm...

How to access and modify a SSH file on mac?

I'm trying to setup SSH on my computer but not sure how to access the ~/.ssh/config file. From github's website they mention this file has to be modified but I'm not sure where its located or how...

"ssh_exchange_identification: read: Connection reset by peer" error when trying to connect to remote repository on git

I'm very new to github, I started using it about two weeks ago. Everything worked perfectly, I was able to push and pull from my remote repository. Today, however, when I tried to pull from it I...

How to set up an SSH config-file for beginners

First I am fairly new to SSH. From this question I have seen the need and benefit of setting up an SSH config file. While I was doing my research I noticed that there is a lot to know on SSH and I...

Can't git push to Bitbucket: Unauthorized - fatal: Could not read from remote repository

I can't push to Bitbucket and this is the error message: > git push origin master:master Unauthorized fatal: Could not read from remote repository. Please make sure you have the correct access...

ssh in vscode error: Permission denied (publickey,password)

So I'm using the "Remote - SSH" plugin in VSCode to connect to my VPS and edit my code. I lost the connection, then had to hard-reset it after 30+ min. Now I can't access it with VSCode anymore...

Visual Studio Code Remote Development crashing AWS instance

I came across Visual Studio Remote Development crashing a AWS instance and i'm hoping to solve this by increasing the instance memory. I have not tested it out yet. Connection is ok and I can do...

Failed to connect ElastiCache from NodeJS server on Elastic Beanstalk

We have a nodeJS server with express on AWS Elastic Beanstalk and we are trying to connect it with the Elasticache(Redis clustered) from the NodeJS but getting this error Redis Client Connection...

Why is the aws cli not found on amazonlinux2 ami?

The AmazonLinux2 AMI I am using for my Docker hosts does not appear to have the AWS CLI installed. The log has an error from the user data script that tries to run an aws...

Detach command from SSH session

I need to run commands on a server via an SSH session and close the session without killing the process on the server. How can this be implemented correctly. Server and client are linux...

Using "OPENSSH" private key file in string with SSH.NET in C# fails with "invalid private key file"

I'm not experienced with SFTP or OpenSSH. I am trying to connect to a client's SFTP to upload a file. I am using the SSH.NET library – https://github.com/sshnet/SSH.NET Within my C# code I have...

Connecting with SSH.NET to OpenSSH 7.4p1 fails with "The server response contains a null character at position" but works in WinSCP

I am trying to connect to an SFTP server using SSH.NET (2020.0.0). My code looks as simple as this: try { var x = new ConnectionInfo(FtpIpAddress, 22, FtpUser, new...

Set global environment variables in VS Code with remote-ssh

I have the case that I need to use VS Code installed on Windows 10 and run it with the extension Remote - SSH on a RHEL 7.x. The default RHEL 7.x runs with git 1.8.x. I have installed a newer git...

How can i login to VM using Azure Bastion Host Other than Azure portal web based SSH?

I have created Azure Baston Host and VM in my Azure Subscription, I am able to SSH to my VM from Azure Portal by giving username and password, I am looking for alternate SSH method like CLI SSH. I...

read multiple files in ssh2-sftp-client

i am fetching multiple files from the sftp client and for each file i want to process it but its not happening plz guide me let Client = require('ssh2-sftp-client'); let sftp = new...