Questions tagged [ssh]

1

votes
2

answer
131

Views

PhpStorm “rsa key is corrupt or has the wrong version”

I'm using PhpStorm 2018.2 and attempting to connect to remote host using SSH key (I can connect via ssh on terminal). When I enter the (newly created) rsa key into the remote host settings I get the error ''{path/to/key}_rsa' is corrupt or has unknown format' ... see image attached. I have seen some...
John Halsey
1

votes
4

answer
155

Views

[“Shared connection closed.”], “stdout”: "sudo: a password is required\r\n while using ansible playbook

I am trying to run one ansible playbook for deploying kubernetes cluster using the tool kubespray on ubuntu 16.04 OS. I have one base machine which is installed with ansible and cloned kubespray git repository. And one master and two worker nodes containing in cluster. My host (Updated) file like t...
Jacob
0

votes
0

answer
3

Views

On whm server curl don't run somtimes

curl http://api.betsapi.com/ This is curl command. It is working on other server but on my whm it have error like that. curl: (6) Couldn't resolve host 'api.betsapi.com' Who can fix it?
tolren frank
1

votes
2

answer
1.8k

Views

Can't run a script

I tried to create a script in linux, on a Synology server over SSH so I wrote a file test.sh #!/bin/bash echo 'this is a test' I saved the file. after that I did chmod 755 test.sh the I did ./test.sh then i got this error -ash './test.sh' is not found the file was created in /root I don't understa...
Koen Van Looveren
1

votes
2

answer
2.5k

Views

How can I login to Ubuntu via ssh and automatically sudo su? [closed]

From my Mac Terminal I can login via ssh to my various Ubuntu servers without entering a password. That's fine. But the work I do in Ubuntu requires me to have root access, so immediately after login I always execute sudo suwhich is an extra step and requires manually entering my password at that po...
Doug Lerner
1

votes
1

answer
261

Views

C# SSH.NET - one SSH connection vs multiple SSH connections

I have a C# application which uses the SSH.NET library to connect to a server. The application executes SQL commands to the database through multiple methods. Is it better to have one long-running SSH connection that encompasses all SQL commands, eg: using (var sshClient = getSshClient())) { sshClie...
user2181948
0

votes
0

answer
5

Views

How to set connection timeout to sshtunnel

I use SSHTunnelForwarder from sshtunnel module on python. Given the next code: server = SSHTunnelForwarder( (sshServer, sshPort), ssh_username=sshUsername, ssh_password=sshPassword, remote_bind_address=(imapServer, imapPort), local_bind_address=('127.0.0.1', localPort) ) print('STARTING') server.sta...
Mikael
3

votes
2

answer
192

Views

npm install fails due to private git repository both ssh and https connections

I have the following package.json file and I am trying to run npm install, but it fails. 'test': 'git+https://@github.build.test.com/test.git', I have ssh key matched to github. However even I write the following, it always run with https. 'test': 'git+ssh://[email protected]/test.git', In b...
JavaChip
1

votes
2

answer
57

Views

Configure ssh config file for certain command

My problem is the following. I wish to configure the .ssh/config as such, that when I write ssh exampleX It is the same as if I wrote ssh -i /path/to/key.pem [email protected] Note that the above command works. Following the answers here I tried to create the file as Host exampleX HostName address User u...
LeastSquaresWonderer
1

votes
1

answer
602

Views

How do I access a remote aws lightsail mongodb over ssh tunnel

I have a Lightsail AWS instance up and running with a MEAN stack. I have an existing MEAN stack running on a different network. At the moment the node server.js connects to localhost for the mongo bit (on same machine) and all I want to do is replace the localhost with a connection to my mongo runni...
AEngineer
1

votes
1

answer
796

Views

Golang SSH to Cisco Wireless Controller and Run Commands

I am trying to SSH to a Cisco wireless controller through Go, using Go's golang.org/x/crypto/ssh library, to programmatically configure access points. The problem I'm running into is correctly parsing the controller CLI in Go. For example, this is the typical SSH login to the controller: $ ssh (Cis...
mwalto7
1

votes
1

answer
100

Views

plink find string in remote .xml file via .bat

I am experiencing a strange issue with SSH, plink, find command and .bat execution. I want to check a setup.txt file on all my remote machines via putty/plink for a specific string. (around 50-400 putty SSH sessions, depending on my environment) @ECHO off SETLOCAL EnableDelayedExpansion (...) SET se...
dEEkAy
1

votes
1

answer
28

Views

Does git track the remote URL if it's changed in .ssh/config?

Assume I have this in /home/ibug/.ssh/config Host GitHub github GH gh HostName github.com User git IdentityFile ~/.ssh/id_rsa PubKeyAuthentication yes And the in a local repo, I run git remote set-url origin gh:iBug/foo Does git remember gh:iBug/foo or [email protected]:iBug/foo?
iBug
1

votes
1

answer
444

Views

x2go resolution from windows client

I'm happily using x2go to connect to a remote Ubuntu Server 16.04 with XFCE installed from my local pc with a local resolution of 1920x1080 on a HiDPI screen (13''). If I run the x2go client from a virtualized Linux (Linux Mint 18.03 with XFCE), everything works well and I can see a really sharp ima...
Alessandro
1

votes
1

answer
891

Views

Jsch 0.1.54 session.connect() throws com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

I use he below code to connect to the ssh server. JSch jsch = new JSch(); Session session = jsch.getSession('username', 'ip', port); Properties config = new Properties(); config.put('kex', 'diffie-hellman-group1-sha1'); config.put('StrictHostKeyChecking', 'no'); session.setConfig(config); session.se...
Sreeraj
1

votes
0

answer
222

Views

SSH Connect to AWS EC2 failed after using lets-encrypt update my website

Yesterday, I updated my Django website (on AWS EC2) to HTTPS by using lets-encrypt. Everything works well. The website has HTTPS green icon as expected. Today when I try to connect my instance by using SSH. The connection keep hunging. Finally, It give some message like 'ssh: connect to host ec2-34-...
Jeffery
1

votes
0

answer
203

Views

getting the hooks via scp in git

I am still new to git (one week as we have switched from SVN). We are using egit with Eclipse but I also have git-bash and I am pretty experienced Linux user (in the past). When I tried to push I got the following error: ERROR: missing Change-Id in commit message footer Hint: To automatically insert...
Tony
1

votes
1

answer
43

Views

How to sync git repositories when central git repo (GitHub/BitBucket) is not available

Normally I push my git-changes from my development machine to BitBucket. This triggers a webhook to my other machine, which initiates a pull from BitBucket. [my machine] \ +---1.push--> [bitbucket] [other machine] However, it is possible for BitBucket to not be available sometimes. So I also want t...
doekman
1

votes
1

answer
334

Views

Change SSH username when connecting with Bitbucket

I just inherited a laptop with a project hosted on Atlassian, etc. I have setup Git, and my Bitbucket profile. Yet, when I perform ssh -T [email protected] the connection is made using the previous guy's user name. I have changed user name and email on both local and global Git configs have validated t...
Yanick Rochon
1

votes
1

answer
53

Views

Windows: is it possible access window 'git bash' or 'ConEmu' via ssh?

I'm using Windows7 desktop and installed ssh to access this Windows7 desktop remotely. In Windows7 environment, I use ConEmu or git bash, which makes Window7env similar with Linux. The Problem is that when I access this Windows 7 via ssh, it shows cmd pane. Is there any way to show git bash or ConE...
user3595632
1

votes
0

answer
31

Views

Building a continuous integration tool

Let's say I'm building a continuous integration tool where the user connects with their GitHub/GitLab account and choose a repository where the tool should be executed at every commit. The tool consists of some find/replace script so the user code will not be executed. For each repository enabled I...
Nicolas Beauvais
1

votes
1

answer
2.1k

Views

bitbucket ssh connection issue “shell request failed on channel 0.” even though I can commit to this repo

I need to setup Jenkins + bitbucket integration for particular repo. repo is as below origin ssh://[email protected]:7999/ta/wa-automation.git (fetch) origin ssh://[email protected]:7999/ta/wa-automation.git (push) I can clone this repo, commit to it without entering email and password...
vikramvi
1

votes
2

answer
1.3k

Views

Connect to MySQL through SSH and by using Spring Boot

In my Spring Bootapp WAR, I have an application.properties file wherein I have defined following datasource properties: spring.datasource.url=jdbc:mysql://localhost/test?autoReconnect=true&useSSL=false&rewriteBatchedStatements=true spring.datasource.username=used spring.datasource.password=password...
Akshay Lokur
1

votes
0

answer
293

Views

Hadoop: Secondary NameNode Permission Denied

I'm attempting to run Hadoop in pseudo-distributed mode to learn how the system work. To install it, I've downloaded Hadoop-3.0.0 from the site, untarred it. I've done my configurations as follows (leaving out the configuration tags for brevity): core-site.xml fs.defaultFS hdfs://localhost/ hdsf-sit...
Zach
1

votes
2

answer
417

Views

How can I solve “We were unable to install a project on your server” in forge laravel?

If I install repository in forge, there exist error like this : Cloning into 'testshop.co.id'... GitLab: The project you were looking for could not be found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. The full error li...
Success Man
1

votes
1

answer
658

Views

Warning: Identity file /home/user/.ssh/id_rsa not accessible: No such file or directory

I'm using Deployer for deploying my code to multiple servers. Today I got this error after starting a deployment: [Deployer\Exception\RuntimeException (-1)] The command 'if hash command 2>/dev/null; then echo 'true'; fi' failed....
Pascal
1

votes
0

answer
257

Views

hadoop master host fails to connect to localhost: connection refused

I've setup HDFS with two nodes, on different hosts, in the same network. I'm using HDFS C++ API. Hdfs name node and data nodes start normally, but when I try to read any data, or open a file, I get the following error: Call From master/192.168.X.X to localhost:54310 failed on connection exception: c...
user1289
1

votes
0

answer
213

Views

putty and internet connectivity to lxc container in CentOS 7 host

I want to create multiple machines on my laptop so are that I can try out distributed coding and software. I have been able to do this for my Ubuntu setup on VMWare but I am unable to do it for CentOS7.3 on VirtualBox 5.1.30. I have created LXC containers with static IP. Below are more details. Com...
Bharat Elwe
1

votes
0

answer
327

Views

php artisan command not working using putty or ssh

Can anybody help me to find out solution. Problem: php artisan command not working on server(using putty name.com) but showing result on my local environment (command prompt windows). Description: when i am running php artisan command using putty it throws error in my error logs. PHP Catchable fatal...
David Devan
1

votes
0

answer
302

Views

Connecting to a remote DB via SSH for Flask [duplicate]

This question already has an answer here: MySQL connection over SSH tunnel - how to specify other MySQL server? 4 answers PostgreSQL via SSH Tunnel 1 answer I am using Flask,Flask-SQLAlchemy, and Postgres. I have set up the Postgres instance to allow local connection only i.e. can be accessed via...
Afeez Aziz
1

votes
1

answer
250

Views

Connect Oracle cloud DB in JAVA using SSH with Local port forward

I want to connect to an Oracle db in JAVA which hosted in cloud. I have server private key and remote details to connect. I can establish SSH connection to server with private key authentication and created SSH tunnel. Now using this tunnel, I can connect to remote server and forwarded session to lo...
Parthiban
1

votes
0

answer
111

Views

Do I need a X11 server on server machine to do X11 forwarding from the client?

I am new to the fundamentals of X11 Forwarding. Suppose I have two machines: A 'headless' ubuntu server, no X, just the CLI. A full ubuntu, with the Desktop and the whole GUI. Now suppose that I want to use X11 Forwarding to display in the machine #2 (the machine with GUI) a Firefox that is running...
AitorF
1

votes
1

answer
312

Views

ssh via python subprocess.Popen: terminate if password requested

I'm using a python script to manage ssh fingerprint problems after a workstation(s) is reimaged. I attempt to connect with ssh, and if I get a any warnings I deal with them. However, if there are no errors, then I am asked for a password to connect. At this point I want to terminate the process. H...
43Tesseracts
1

votes
0

answer
29

Views

Conditionally apply ssh-config

I have to ssh through a bastion host to get at my AWS instances and services. I setup my ssh config to automatically tunnel through the bastion to get to any of the ip addresses in the range for my stuff. That's great when I'm working from home, but when I'm in the office, the network there has dir...
toadzky
1

votes
1

answer
79

Views

Unable to generate SSH keys for the User in Xamarin Mac Agent

I have a High Sierra Mac and a Windows 10 Laptop. I am struggling to connect to the Xamarin Mac Agent from my laptop. I can SSH into my Mac from my laptop using PuTTY and OpenSSH Beta. I have the port open at the router and I can SSH into my mac from my local network and over the internet. When I tr...
JamesDonnelly
1

votes
3

answer
267

Views

git daemon over ssh - fatal: protocol error: bad line length character: SSH-

I'm created user 'gitproxy' on the server side, added my ssh key to its authorized keys and trying to work with git daemon over ssh: gitproxy:~$ git daemon --port=2222 --verbose but have the error: On client side: o:~/git$ git clone ssh://server>:2222/home/gitproxy/git Cloning into 'git'... ssh: con...
Alexander
1

votes
0

answer
30

Views

How to do vagrant up without login in the end?

I have a vagrant machine where I want to prevent ssh login to the machine after the boot. My system does not use any synced folder or I also do not have any provision script. I tried these options config.ssh.timeout Apparently not supported config.vm.boot_timeout In my case the boot time is unkno...
Hemen Ashodia
1

votes
1

answer
355

Views

Using RSUB on a machine through SSH with limited permissions

I'm trying to use rsub and Sublime 3 to edit files on a remote machine following the instructions posted in the top response of THIS stack overflow post. However, the machine I am using I do not have permissions to edit anything but my home directory. So I cannot install rsub anywhere but in my home...
drew.neely
1

votes
1

answer
117

Views

bash heredoc gets corrupted(randomly) when pasted to ssh terminal [duplicate]

This question already has an answer here: How to use SSH to run a shell script on a remote machine? 13 answers I connect to a lot of Linux servers with ssh and run a health check script on each, wanted to save myself 2 secs per server when doing so. So instead of normally creating the script file:...
Martin Fejfár
0

votes
0

answer
10

Views

Can I give a docker container ssh access to a host without also giving it the private key?

Request This docker command injects my ssh key and username into a container, connects that container to a remote host, and then runs: echo hello world on the host: docker run --rm \ -e 'host=the.host' \ -e 'user=my.user.name' \ -v '/home/me/.ssh/id_rsa:/key' \ ubuntu:18.04 /bin/bash -c \ 'apt updat...

View additional questions