Questions tagged [ssh]

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...
1

votes
1

answer
231

Views

Collecting command responses from mocked SSH server (Apache MINA)

So what I'm trying to do, is create unit test that checks if invoked command (on shell via ssh connection) has a proper response. The problem is that I can't read those responses. There are not many tutorials regarding Apache MINA, so I thought maybe some of you could help me out. Here's a code @Bef...
user3713267
1

votes
0

answer
92

Views

Git on Windows not asking for SSH key password. SSH not found correctly id_rsa key

The problem is that I never see a prompt to enter my SSH-Key password, just a prompt that offers login directly to my git server. Tested ssh connection: $ ssh -vT [email protected] OpenSSH_7.6p1, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to myh...
pelius
1

votes
1

answer
525

Views

“sudo” command executed with JSch requires password, even when the password is not required in an interactive SSH session

From Linux command shell I can make SSH connection to our CentOS machine using user ABC. After successful SSH connection, I can run sudo command and no password is required. sudo /usr/bin/rootsh -i -u root In JSch program, I make am SSH connection using user ABC and then execute the above command, b...
user3027786
1

votes
1

answer
289

Views

AWS EC2 - Ubuntu instance, SSH connect to host operation timed out

I am new to setting up virtual machines. I created my first Ubuntu instance using AWS EC2. Everything seemed to check out until I tried connecting to it with ssh, as per instructions. To provide some context, my app is called 'smpapp'. My computer is macOS High Sierra. Naturally, my smpapp.pem file...
Christopher Costello
1

votes
1

answer
89

Views

PBS/Torque cannot finalize the result of computation

I have installed Torque on Ubuntu machine (it's the server and the only node). And it seems like jobs are working fine except for the finalization part. When the job ends, I get something like PBS Job Id: 17.ubuntu-server Job Name: dm.job Exec host: ubuntu-server/0 An error has occurred processin...
Vasily Mitch
1

votes
1

answer
975

Views

Gitlab CE git clone not works via ssh

I had Installed gitlab ce in docker. I want to make git clone from server via ssh. I set port 3000 in gitlab config. When i try to make git clone i had next: git clone ssh://[email protected]:3000/pm/site-crm.git Cloning into 'site-crm'... ssh: connect to host git.site.com port 3000: Connection refus...
Vladyslav
1

votes
0

answer
113

Views

Getting Exception in deploying on server , How to resolve this?

I am using capistrano to deploy on ubuntu server Brief Response : while executing as [email protected]: invalid encoding Logs attached below Here is detailed response: ** Invoke staging (first_time) ** Execute staging ** Invoke load:defaults (first_time) ** Execute load:defaults ** Invoke rvm:hook...
Shubham Gupta
1

votes
0

answer
34

Views

No SSH link in Gitblit (installed in tomcat ROOT directory)

I have installed Gitblit in tomcat root directory but SSH link is not visible. It can be solved by moving gitblit out tomcat ROOT directory. But I need gitblit in that directory because of some network and firewall issue. I am using giblit in tomcat (XAMPP) on windows server 2012 R2.
h.muja

View additional questions