Stack Exchange Network

Stack Exchange network consists of 175 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 (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

0
votes
0answers
6 views

SSH tunneling between networks without port forwarding

Is it possible to set up an SSH tunnel between two machines, on two different networks, without control over the router on either network? For example, is it possible to create a tunnel between ...
0
votes
2answers
25 views

Connect to remote server through another server buy one line command

I have two servers: server1 and server2 I can connect to server2 only from server1 by a specific user. Currently, I connect like this: My computer ssh user@server1 On server1: su - user2 After this ...
1
vote
1answer
17 views

ssh-copy-id doesn't work with .pem files

I am trying to copy an SSH public key on several EC2 instances. Reading the ssh-copy-id man page, when you pass the key file, the program adds .pub extension if it missing. AWS keys are generated ...
-1
votes
0answers
14 views

why can't ssh login vm instance in gcp now?

ssh can't login in vm instance, both from browser window and cloud shell window, one month ago, the function is ok Picture from browser Picture from cloud shell
-1
votes
0answers
8 views

Cannot log in a server by ssh due to heavy tasking. Is there any way to cancel the program?

I wonder is there any way to cancel a heavy program without rebooting the online server which makes me not being able to log into the server through ssh, your help is really appreciated!
0
votes
1answer
10 views

GetAddrInfo when SSH has bizarre behavior

I have a server that is hosted on Rackspace. Let's call the server foo. The server foo's domain (it's a web server) is hosted on DNSMadeEasy. I have noticed some bizarre behavior with this set up and ...
0
votes
0answers
21 views

iptables - allow only one domain and global SSH access

One of my server providers reports me a server of mine generating suspicious traffic to other IP addresses. I think my server using a DDOS bot and i couldn't find the source of the problem. So I ...
0
votes
0answers
16 views

Yubikey SSH on Cygwin fails yet Putty succeeds

I am trying to set up my Yubikey on Windows such that I am able to SSH with it to my server. I successfully generated keys on it and extracted the public key in SSH format (I did this on a linux VM)....
0
votes
1answer
25 views

Kill ssh process

I was connected to an ubuntu machine and instead of typing exit to logout, I killed the ssh process by its PID: kill PID Now, when I try to connect again to the ubuntu machine, I get the following ...
0
votes
1answer
33 views

Ansible - SSH Error: data could not be sent to remote host

I am trying to use Ansible 2.7.7 to manage Ubuntu 16.04 cloud image but when I try to make connection I get error: SSH Error: data could not be sent to remote host "192.168.111.11". Make sure this ...
2
votes
1answer
23 views

Debian jessie upgrade OpenSSH server to latest

I have a Debian 8 server for a customer that is failing a PCI scan, presumably running: nmap -p 22 -sV customer.edu which returns 22/tcp open ssh OpenSSH 6.7p1 Debian 5+deb8u7 This should be ...
0
votes
0answers
22 views

How do I SSH into a Windows 10 Powershell session with colors and tab completion configured from a Linux terminal?

The default on Windows 10 is to ssh into cmd.exe . If you type powershell.exe from there you get highlighting and tab completion. However, it is kind of flaky and laggy sometimes. If you ssh directly ...
0
votes
1answer
20 views

Single session limit for sftp user

I just want to set limit on sftp connection. Like if i set a session limit 1 so that user can make only 1 connection from that username. I don't want ip based or port based limit. I have tried /etc/...
1
vote
0answers
10 views

transfer file from windows machine to hortonworks sandbox HDFS

I want to upload one file from a local windows machine to HDFS. I am using Hortonworks Sandbox for Hadoop. I have tried the following command to transfer file, but it shows connection refused. scp -...
1
vote
0answers
20 views

Cisco IOS: Is it possible to SSH into a Linux server with PubkeyAuthentication?

I'm on a Cisco 2900 router running IOS ver 15.4. I have run show ip ssh and get the following: SSH Enabled - version 2.0 Authentication methods:publickey,keyboard-interactive,password Authentication ...
0
votes
1answer
35 views

Is the authorized_keys options field broken on MacOS Mojave?

My authorized_keys file looks like this: from='127.0.0.1' ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeAVHd//GTcItdubkzN+FzQYDlEIa9YxKK7jyg/uufjP/...
2
votes
1answer
30 views

How to prevent Git client hanging during post-receive hook

I have a Git repository that contains a collection of config files and python scripts. On the server repository, I have a post-receive hook that will: checkout the master branch, setup a python ...
0
votes
2answers
36 views
+50

Why no sshd logs on Stackdriver?

First, any idea why Stackdriver doesn't ingest auth.log by default? Second, what would be the best way to do it?
13
votes
2answers
534 views

How to SSH directly to target via jumphost using SSH Config without additional ssh command

If I do: ssh -J jumphost.example.com target.example.com I end up immediately logged on to 'target'. If I use this ssh config file, using the newer ssh-7.3 jump config: Host jump 10.1.*, targets*, *...
1
vote
2answers
36 views

Unable to SSH into switch: Key exchange or Algorithm Negotiation failed on hold

Referred here by Network Engineering Stack Exchange. I am having a D-link 1510-28 switch to which I am trying to SSH into. Upon trying the command: srajan@srajan-Virtual-Machine:~$ ssh admin@10.82....
0
votes
0answers
16 views

Cisco IOS: How can I add the output of 'show crypto key mypubkey rsa' to authorized_keys file on Linux?

The goal here is to copy from my Cisco IOS device to a Linux server without needing to input a password. Example: copy startup-config scp://root@10.10.34.77://root/startup-config On my Cisco IOS ...
3
votes
3answers
178 views

Server ssh certificate chain against MITM attacks?

During first contact with a server via ssh, the server's public key of the chosen key algorithm is presented to the user to validate it. After validation, the result is usually saved into the ~/.ssh/...
3
votes
1answer
35 views

Amazon AWS localhost error: channel 3: open failed: connect failed: Connection refused

I have just made an AWS ubuntu instance with a private key. I managed to connect to it through ssh, but I can't connect to it in web browser with localhost. I'm connecting through a windows computer ...
0
votes
0answers
11 views

Openvz VPS Ubuntu 16 /var/run/sshd directory missing at every reboot [duplicate]

I am running a few VPS servers with OpenVZ latest kernel and Ubuntu 16.0.4 that I resell to my customers. Every reboot, the /var/run/sshd directory gets deleted, for unknown reasons apparently, and ...
0
votes
1answer
28 views

“ssh_exchange_identification: read: Connection reset by peer” error trying to connect to OpenSSH on Windows machine

I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output: steves-air:~ steve$ ssh steve@mydomain.ca -v OpenSSH_7.9p1, LibreSSL 2.7.3 ...
0
votes
2answers
75 views

How are hackers getting into our server without brute-force? [duplicate]

I am a web developer and we have no one specialising in the wellbeing of the server or the network currently at our office. Usually I can sort many of the issues that arise with my basic knowledge but ...
-1
votes
2answers
38 views

SSH connect to a server: “Permission denied (publickey).”

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg: Permission denied (publickey). On my local machine, under ~/.ssh/config I have this set: Host ...
0
votes
1answer
21 views

Cannot connect to my remote server via ssh

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg: Load key "/home/potatouser/.ssh/dashboard.pub": invalid format Permission denied (publickey). On my ...
0
votes
1answer
17 views

Aws Ubuntu access lost, while creating new user

I had created a new user ( disable password command) on my instance. while giving him access somehow i have edited file at etc/ssh/sshd_config at line 33 #AuthorizedKeysFile %h/.ssh/authorized_keys /...
0
votes
2answers
77 views

Unable to ping the remote user via ansible

I'm trying to connect my host machine which is of Ubuntu (ctrlnode is user) to remote machine which is of RHEL (rhelnode1 is user) on AWS and when I try to connect my a user (rhelnode1) on remote ...
0
votes
1answer
18 views

ssh: connect to host [public ip] port 22: Connection refused

I have a CentOS 7 VM Instance on GCP, I have a cron job on my local infra that connects to GCP Instance every minute to check some parameters on GCP VM Instance. Most of the time the ssh [public ip] ...
0
votes
0answers
28 views

Resolving host key verification failed on chroot system

I'm working on system where I'm doing A > B via .sh script and run some commands on B and exit. When I run A (Chroot user) > B It gives me host key verification failed from within chroot env,...
0
votes
0answers
14 views

Shell with server admin control [migrated]

We have a long-term dispute in our company. The webdevelopers sometimes need to execute a command on the server, but the server admins do not allow them to use SSH, because they do not want to risk, ...
1
vote
1answer
36 views

updating SSH version 7.4pl to 7.5 on Amazon linux 2

I got one error while scanning My Amazon linux 2 Ec2 instance OpenSSH < 7.5 22 / tcp / ssh Medium 5.0 The vulnerability is not included in the NVD OpenSSH < 7.6 22 / tcp / ssh CVE-2017-15906 ...
0
votes
1answer
60 views

Google Compute Engine ssh: connect to host <IP> port 22: Operation timed out

I have setup my VM on Google compute engine and connect to it from my Mac using SSH via Gcloud. I have installed my Django website and after that when I run the command below: sudo ufw enable After ...
2
votes
1answer
37 views

SSH using domain name from internal network

I have a home server running Ubuntu 18.04 that hosts some private services. For access from the outside world, I have a domain that points through my router at my home server. This way I can access ...
0
votes
1answer
46 views

why does ssh remote-server sh -c touch 1

Currently getting touch: missing file operand Try `touch --help' for more information. I followed execute su -c over ssh to find out that I need to do ssh remote-server 'sh -c "touch 1 && ...
0
votes
1answer
12 views

Server always defaults to github.com with error message `Permission denied (publickey)`

I'm trying to connect to a remote server via ssh but I always get redirected to github with an error message, even when I am not trying to connect to github: ssh username@<anyServerName> ...
2
votes
1answer
40 views

SSH gateway with all config on the gateway?

I have a ubuntu server running some LXD containers - none of these have public IP's, but are exposed to the web by a reverse proxy for HTTP. These containers belong to different individuals and I ...
0
votes
1answer
46 views

Connect through SSH to the VPN Server

I've succesfully set up Softether on a Raspbian RaspberryPi 2, set up a .softether.net address and configured its OpenVPN clone server function. It is connected via eth0 to the router, but if I set ...
0
votes
0answers
20 views

Forward one SSH user login to a different SSH server

I have a box with one user, say pmg, and on it I run Gitea in a container with its own ssh server and another user, git. Currently, I have configured the main SSH server to listen on port 22, and the ...
1
vote
1answer
68 views

Unable to ssh into running dropbear sshd. “Bad password attempt” …But password is correct

For some reason, a running dropbear sshd i've got going in a Docker container is telling me Bad password attempt , even though i've doublechecked multiple times that both username and password is 100% ...
0
votes
0answers
5 views

How can I fix SSH-PPP bursted behavior? [duplicate]

I was reading this article about PPP over SSH. In section 2.2, the article says: Tends to be bursty: For some reason, when network load gets high, one tunneled TCP connection tends to ...
1
vote
0answers
29 views

SSHd logs in Docker container not shown by `docker logs`

When using CMD ["/usr/sbin/sshd", "-D"] in a Dockerfile, docker logs does not show the logging: cat > Dockerfile.stdout <<EOF FROM alpine:latest RUN apk add --no-cache openssh-server \ ...
1
vote
2answers
78 views

SSH Keys don't work despite SELinux disabled, keys copied and permissions set

SSH Keys are broken and I've read many threads trying to fix this. Any advice? I've masked possibly sensitive information such as the IP addresses and SSH keys with [REMOTE_IP_ADDRESS], [...
1
vote
1answer
46 views

How to SSH to a remote server connected via a reverse SSH tunnel, but from a different server than the tunnel is connected to?

I feel like I may be using the wrong terminology in my research to-date, which is why I'm not finding what I'm looking for. All I've find is information on how to set up a Reverse SSH tunnel and/or ...
-2
votes
0answers
31 views

ssh works on windows but not osx on certain networks

I have a strange problem using ssh/sftp on a mac (OSX sierra). When running from my home network, or a tethered phone I am able to ssh/sftp into my server. But on certain networks it randomly times ...
1
vote
3answers
63 views

SSH login to same machine with ssh-key keeps prompting for password

I want user 'redmine' to login to the same machine via ssh without a password. However it always asks for a password. I am on Centos 7, the key has no password. Content of redmine's home-dir: drwx--...
1
vote
0answers
13 views

unable to open http web console for tomato OS using reverse ssh tunnel

I have a tomato OS on my router. as the router is bedind a NAT, so i cannot access it using port forwarding (dont want to) , or any other way, the only way is to use ssh reverse tunnel. so i tried ...
3
votes
1answer
101 views

What is happening when I SSH into a Windows Server and open Notepad?

In Windows Server 2019, SSH is fully supported by Microsoft. From PuTTY I SSHd into a Windows Server 2019 machine, logged on, and it gave me a cmd. While I did this I also had a RDP session to the ...