Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

0
votes
0answers
27 views

Uniting Putty/WSL-openSSH with Ansible under the same private key and passphrase

In my PC I use Windows 10 home (build 17134.471) with WSL-Ubuntu (16.04 - Xenial) and Ansible. I often rent IaaS machines with latest Debian and SSH into them via Putty from Win 10 and all of my IaaS ...
0
votes
1answer
13 views

Exit code of 1 from SSH command

Why would the following return a 1: ssh -tt server_name "sudo grep 'something' /path/to/file || [ $? = 1 ]" The command in double quotes when run directly on server_name returns 0. Why is the ssh ...
0
votes
1answer
14 views

SSHing into a RasPi while an openVPN connection is active for all IPs not within the local 10.0.0.* network

I would like to be able to SSH into my raspi; which I can do so over the wlan0 interface if it simplifies things. All other connections Id like to be routed through an openvpn connection at interface ...
0
votes
0answers
11 views

Filezilla on Mac: yubikey authentication?

I am trying to connect to a remote server over ssh using a YubiKey smartcard device. The device contains a GPG authentication key to be used. This works flawlessly on commandline, but I cannot get ...
0
votes
2answers
42 views

Tunnelling server traffic throuh SSH when port forwarding on network is unavailable?

Setup At home, I have a little Raspberry Pi 3 that runs services that are exposed to the internet. For example, it is running a HTTP server. I will call this server raspberry. I can manage raspberry ...
0
votes
1answer
25 views

ssh: connect to host localhost port 22: Connection refused on Windows 10

thanks in advance for the responses ! I've been trying to make a multi node cluster with hadoop, but my mates can't ssh to my server. I have hadoop working, and daemons launched, but when I try to ...
0
votes
1answer
23 views

Looking to tunnel Chrome traffic on Azure VM via my local mobile data dongle

As the title stated, I'm looking to tunnel Chrome traffic on an Azure VM via my local mobile data dongle. I'd basically like to be able to control the external IP address of the web browser. Is this ...
1
vote
1answer
53 views

ssh authentication failure with public/private keys

I'm setting up a Continuous Deployment pipeline on gitlab. Unfortunately, when trying to ssh from the pipeline to the target server, the authentication fails. I am asking the question here because I ...
0
votes
0answers
33 views

Turn off Win10 display(s) via OpenSSH

There are a lot of solutions to turn off display locally on a Windows10 machine. They all are some form of the following SendMessage line. There's also little executables like nircmd that do this. ...
0
votes
1answer
51 views

Disable SSH password on Ubuntu virtual machine

I have Ubuntu Server 18 installed on a virtualbox instance. I want to be able to SSH into it from the desktop computer that it's currently installed on and running on as well as from my laptop. Would ...
0
votes
1answer
37 views

all of my ports on my router are open in my router without me setting it

Something very strange happened 4 days ago.... I have been remotely connecting to my workstation using ssh. I use public authentication and my router has been set up to port forward all connections ...
0
votes
0answers
22 views

How can I send keyboard input thorugh SSH to a windows machine?

So, I have two computers at home, both with Windows , and I'm trying to learn how to send inputs from one to another. When I used linux, it was as simple as using xdotool over SSH. But in windows I ...
0
votes
0answers
19 views

ssh on msys2 not using correct home directory for .ssh

$ cd $HOME $ pwd /c/Users/rjt_jr $ cat /etc/nsswitch.conf passwd: files db group: files db db_enum: cache builtin db_home: windows cygwin desc db_shell: windows cygwin desc db_gecos: windows cygwin ...
0
votes
0answers
27 views

unable to use terminal after SSH to windows server using FreeSSHD

I have setup a SSH server on windows using freeSSHD. From Linux machine I run the following command to SSH to Windows: SSH -i mykey myuser@mymachine The moment I hit the enter button, I no longer ...
0
votes
0answers
36 views

SSH Tunnel Public >Linux> Windows [on hold]

I will try my best to explain what I'm trying: Any Public IP -> Router (port 5555) to internal 192.168.1.5 Linux (ssh -L 5555:localhost:3389 -N -o GatewayPorts=yes admin@192.168.1.100) to Windows 7 (...
0
votes
0answers
10 views

How to start SSH in RHEL 6.3 rescue mode

I had a server crash on me, and i'm using Rhel 6.3 rescue mode from a USB. I was able to boot into rescue mode which gives me what looks like anaconda shell: [anaconda root@localhost /]# when I ...
0
votes
0answers
25 views

scp unable to get term attr:

I use a VPS on port 7822. I can SSH login without any problems but when I use scp it gives me the following error after entering the password: Unable to get term attr: Invalid argument I ran the ...
1
vote
0answers
12 views

GCP: Can not ssh to instance after sftp config setting (ForceCommand internal-sftp) [closed]

After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested. Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-...
0
votes
1answer
20 views

Is there anyway that ConEmu can display local bash and remote ssh on the same tab?

OS: Win 10 ConEmu: 180626 [64] I would like to display a ssh to my remote server and a local bash on the same. I can easily split with CTRL+SHIFT+ (e or o) but if I'm on remote it opens another ...
2
votes
0answers
13 views

DigitalOcean Droplet (Ubuntu 18.04) Password Reset Loop

I'm relatively new to DigitalOcean droplets, but I have had a Ubuntu 18.04 droplet running a Nextcloud instance for a couple weeks before I started running into problems. I'm not 100% sure where the ...
-1
votes
0answers
18 views

Windows openssh is putting forward slashes in the path to the user's .ssh directory and not finding it

I installed the official OpenSSH release build from their github repo. Generated a key. when I try to ssh somewhere, that key is not found. It is on the file system. Debug output: debug3: ...
1
vote
1answer
36 views

Re-Route network calls to multiple domains through SSH tunnel in windows 10

I have the following situation: There are some hosts that are only accessible through an ssh tunnel. Lets say its https://example.com https://other.com I can establish the SSH tunnel and bind the ...
0
votes
1answer
15 views

How to get the index of each pane in a window with synchronized panes?

Suppose the following scenario. I have machines named host1 through host4 to which I want to connect in one pane each. I have split my Tmux window evenly into four panes so each of them can host an ...
0
votes
1answer
19 views

Get SSH authentication data after key authentication

Is it possible, from the server side to retrieve data used in the key authentication after this is completed? For example, from a pam module, to get the public key used, the challenge used (if it was ...
2
votes
1answer
15 views

SSH server checking public keys from another source

In an ssh connection with key authentication the user sends the ID of the public key he wants to use. Then, the server checks the authorized_keys file for the publick key. I'd like the server to not ...
0
votes
2answers
89 views

SSH - How to add host to ssh/known_host file

The known_hosts file looks like this :- [localhost]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpU [10.18.60.198]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpUt9 // key are trimmed at the end ...
0
votes
0answers
29 views

Find out which process steadily creates new outgoing ssh connections

I'm trying to figure out which process is flooding the system with outgoing ssh connections. I know that netstat can be used for this, but it doesn't show me the pid of such a connection. Also, the ...
0
votes
0answers
14 views

PuTTY freezing up

I tried to use PuTTY yesterday. I logged in through a pre-existing SSH connection, but the window froze up and would not let me do anything. Then after a few seconds, it gave me the error message ...
0
votes
0answers
23 views

SSH from virtual machine to remote server through host's VPN: connect to host port 22: Network is unreachable

I have found plenty of answers how to SSH to virtual machine running on remote server, however I did not find any solution to my problem when I am trying to SSH FROM VirtualBox virtual machine running ...
0
votes
0answers
27 views

Can I run my server on SSH port?

I set up server for a game on my PC and by default it works on port 25565(minecraft!) and I want people from outside my Uni network to connect to the server. I want to know if there's any way to use ...
0
votes
1answer
22 views

Creating SSH keys to login into remote machines as root user

I have followed the process of creating the public and private keys so that I can login in to remote system without a password. But I would like to login into the remote system as root user without ...
0
votes
1answer
70 views

Permission denied when connecting via ssh (ipv6)

I use a key to authenticate. When I connect using ipv4 it's working. Using ipv6 I can not login (using password or not). Do I need a seperate rsa-key to manage ipv6 ssh's?
0
votes
2answers
75 views

Backup files from server (static IP) to home server (Dynamic IP)

I am already familiar and use rsync, scp transfers, tar, 7z etc however none of which solve a backup I intend to do rather regularly. I have a remote server with 80% used space on 100GB SSD that I ...
1
vote
1answer
34 views

I've generated a public key: 2976 bits …?

I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+...
0
votes
0answers
19 views

ssh output from remote terminal to txt file on local host linux

I have an output through ssh on a remote terminal that I would like to capture and save as a txt file on my host terminal without saving it on the remote terminal first. I have tried: $ find / -user ...
0
votes
1answer
46 views

Port forwarding without router

Feel free to let me know if this is the wrong place to ask, but I've been wondering about it for a while. I live in university housing and we have internet included. If we want wifi, we need a router, ...
0
votes
1answer
19 views

How can I start a graphical browser on my remote PC and use it on the local one using SSH?

I am able to SSH into my Debian PC from another Debian system, I want to go into my router's configuration webpage to modify port forwarding configuration. However the router's webpage is badly ...
0
votes
3answers
65 views

Google Compute Engine SSH - different username after switching to OS Login

I created a Compute Engine VM (Ubuntu 18.04), and when I log into it using the SSH button in the VM instances list I'm logged in as user username. After a while, I realised I needed to be able to use ...
0
votes
1answer
32 views

Can I use my internet connection for the setup of a Ubuntu VM without Internet connection

I got a Linux VM set up in a corporate environment to host an application. Sadly it does not have active internet connection. Is there a way to use the internet-connection from my client while I am ...
0
votes
2answers
59 views

How to set up SSH key for git on Windows 10 Ubuntu subsystem

I'm using the ubuntu bash (subsystem) on windows 10 as my shell. I have a gitlab git repository that I cloned. When I use the git from this shell it is separate from my windows git and I'm unable to ...
1
vote
1answer
29 views

SSH host key changed just after setting root password

This might sound super suspicious, but it just happened to me: I run a rented Raspberry Pi as my own mail server and today I set a root password to eventually login as root directly. I did not yet ...
-1
votes
0answers
20 views

Same SSH tunnel for multiple hosts

I am super new to SSH and I want to create an SSH tunnel which forward multiple ports. Let's say I have three hosts then instead of forwarding ports like A->B->C, I should be able to connect any of ...
0
votes
0answers
17 views

Can't connect to ssh on domain network at work

I have a remote Ubuntu server that I connect to via SSH on a non-standard port. I also have SSH keys set up and have PasswordAuthentication set to no. I am able to connect via PuTTY on Windows ...
0
votes
1answer
44 views

SSH connection with PuTTY to openSUSE on VMware VM times out

I have installed openSUSE Leap 15.0 on VMware Workstation 15 Player and my attempt to connect with PuTTY times out without any more specific error message. The host machine runs Windows 10 and for "...
0
votes
1answer
33 views

SSH into EC2 instance: Operation timed out

I'm trying to ssh into my ec2 instance in order to deploy my MEAN-stack app but no matter what I'm receiving a timeout error. I've tried so many solutions that were posted in other StackExchange ...
0
votes
1answer
19 views

Failed to load a remote .xml file from a variable

Trying to read .xml file from another server into a variable test=$(ssh root@server "cat /dir/file.xml") But when doing echo $test, it prints the .xml file in one-liner format. Then trying to ...
0
votes
1answer
64 views

How to escape characters over SSH command in a Makefile

I am trying to reload nginx in a Docker container over an SSH command... This is what I have in my Makefile: reload: ssh me@x.x.x "docker kill -s HUP `$$(docker ps | grep nginx | awk '{print $$1}')`" ...
1
vote
3answers
300 views

Remote machine suddenly not reachable with ssh [closed]

I set up a remote Ubuntu machine a few weeks ago and I was able to ssh into it without any problem. This until a few hours ago, when the machine stopped responding, and I tried to start a new session. ...
0
votes
1answer
13 views

Extend or inherit existing entries in .ssh/config

I have the following entry in my .ssh/config file: Host myhost Hostname localhost User me ServerAliveInterval 30 ProxyCommand ssh -q external-relay /usr/bin/nc -w 90 localhost 9889 ...
0
votes
1answer
49 views

What does the name after the colon in GItHub ssh address mean?

For example, git@github.com:JohnCoates/Aerial.git in this command, I think git: username in GitHub Unix server github.com: host name /Aerial.git: directory . So, what is :JohnCoates? Generally, ...