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

-1
votes
2answers
51 views

Prevent users in my network to SSH on a server1 and then SSH to another server2 from there, but still allow them to SSH on server1 [on hold]

Updated version of the question to comply with the community rules I am a junior network administrator of a library that would like to provide WiFi access to its visitors. There are no seniors around ...
-2
votes
0answers
9 views

Ssh from pfsense lan Network to outside network [on hold]

I have a lan behind pfsense and need to ssh a server outside the network. Ssh is working inside the network.
0
votes
1answer
17 views

SSH PEM_PATH check for password prompt

I am copying the public key of the pem file generated from External Box to all EC2 instances. This prompts for password for first time Therafter I am able to do scp to all EC2 instance without ...
0
votes
0answers
5 views

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

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
20 views

gcloud compute ssh requires password even after using json key file for authentication

Hi Google cloud experts, I am trying to authenticate gcloud using json key and even doing everything as per docs it requires for password when I run gcloud compute ssh root@production Here is ...
1
vote
2answers
68 views

Get SSH port of an ec2-instance [duplicate]

In my company, we have an ec2-instance, of which I didn't have any knowledge about. My predecessor would have created that, and didn't provid any information about that. Now suddenly something ...
0
votes
0answers
9 views

ssh-keyscan does not read .ssh/config?

I am using ssh-keyscan in a shell script to accept keys for hosts. The hosts are identified by hostname but not in /etc/hosts. They are in ./ssh/config so I can ssh <hostname> but I can not ...
1
vote
2answers
36 views

Complex reverse proxy

I'm looking for a one-liner. The hops are: I have a Ubuntu instance with SSH exposed to the internet Only a single user with a key can SSH from the internet. That single user has zero privileges, so ...
0
votes
0answers
35 views

Google cloud platform, vm instance's ssh permission

In my Google Cloud Platform, vm instance, I accidentally changed the permission of /etc/ssh, and now I can't access it using ssh nor filezilla. The log is as below: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
0answers
26 views

How to monitor outgoing bandwidth by file via ssh? (Ubuntu) [closed]

I need to see a list of the top files consuming the most bandwidth on the server running NGINX as reverse proxy for Apache. I've been looking but i can't find the right tool. What can i use?
0
votes
0answers
13 views

all of my router's ports are open? [closed]

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 ...
-1
votes
0answers
21 views

Server responded Protocol error packet too long 1349676920

What is the solution for above mentioned error. I received that issue while connecting from putty / tectia secure shell tools. I have installed ubuntu server 18.04. Below is the output for ssh and ...
-2
votes
0answers
33 views

Upgrade Centos 6 to Centos 7 using ssh

I have a server with the latest version of centos6 and want to upgrade it to centos7. I read some articles that almost all of them using PreUpgrade Assistant and redhat-upgrade-tool that need a ...
1
vote
1answer
38 views

Why do SSH keys work for users `root` & `freebsd` but not `postgres` (database owner)?

I have been using FreeBSD running an a virtual machine at DigitalOcean.com. I use Secure Shell (SSH) from my Mac to remote into a console session on the VM. I used ssh-keygen to create the pair of ...
0
votes
0answers
24 views

GCP: Can not ssh to instance after sftp setting (ForceCommand internal-sftp)

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-...
3
votes
1answer
30 views

Run local X11 command from remote SSH connection

When I connect to my server using ssh -X and run for example xterm on the server, the xterm opens up on my local machine. What I actually want to do is for the xterm which is installed on the server ...
0
votes
1answer
17 views

How to double ssh in bash using a private key and different users

In order for me to ssh to B, I need to go through A. Host A HostName x.x.x.x User user IdentityFile ~/pathto/file.pem Host B ProxyCommand ssh A -A nc x.x.x.x 22 I just tried ProxyCommand ...
0
votes
0answers
9 views

No packet from server with “Diffie-Hellman Kex Exchange Reply” in SSH communication

Though I have gone through many answers regarding the SSH connection issue of "expecting SSH2_MSG_KEX_ECDH_REPLY", most answers suggest either the workaround of lowering the MTU value or with ...
0
votes
1answer
56 views

Connect over SSH to server running OpenVPN client with ip tables: “Nexthop has invalid gateway”

I tried to follow the solutions listed here for being able to continue SSH connections after connecting to an openvpn client: https://www.linode.com/community/questions/7381/openvpn-client-connected-...
2
votes
1answer
46 views

How do you set the session key size in OpenSSH?

In version 1 of the SSH protocol, it was possible to set the ephemeral session key size with the ServerKeyBits setting in sshd_config. Is there a way to do this for version 2 of the ssh protocol? In ...
0
votes
0answers
24 views

SSHD skips PAM auth [migrated]

I developed a PAM module for authentication and I want SSH to use it. I put it on the top of the /etc/pam.d/sshd stack, but it is not called. I know for sure that the module works because I integrated ...
0
votes
0answers
23 views

How to solved 502 bad gateway from nignx while nginx used as proxy for Apache on aws ec2 redhat

I have installed latest version of Apache (HTTPd), nginx and php7. Configured perfect when they are independent. Defined document root as nginx document root in Apache config. Apache only listen 127....
0
votes
0answers
7 views

Backup files from server (static IP) to home server (Dynamic IP) [migrated]

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 ...
2
votes
0answers
46 views

PuTTY configuration with plink for keyboard-interactive authentication

Please see EDIT #2 for latest findings I've looked at other similar questions but, unfortunately, none of them seemed to help. This one is the closest and my symptoms are similar. Here's the issue: ...
1
vote
1answer
49 views

Unable to ssh server via ipv6

First: ipv4 works fine. So I got the following setup: (Server is an Arch Linux OS running as VM) EDIT Added a rule ACCEPT tcp ::/0 ::/0 tcp dpt:22 which ...
0
votes
0answers
29 views

Empty reply when CURLing through proxy

I'm using ssh to create a proxy connection to an EC2 instance: ssh -v -D 8123 ubuntu@some.ip.address But when I test it using curl, I get: http_proxy="http://localhost:8123" curl example.com curl: (...
2
votes
1answer
102 views

Ansible Playbook running locally but unable to ssh to host via AWX

SUMMARY I have ansible and ansible AWX installed on same AWS EC2 instance and I am trying to deploy build on another app AWS EC2 instance. I am able to run the playbook via ansible-playbook command,...
2
votes
1answer
38 views

I've apparently locked myself out of ssh on one of my Google Compute instances

As recently as yesterday, I was able to connect to our development instance via my local ssh client, using one of several ssh keys listed under sshKeys in the instance's custom metadata (the old-...
0
votes
1answer
43 views

sshd: Disable PAM authentication for period of time after successful login

We're using public key authentication in combination with the Yubico pam for our servers. Is it possible to temporarily (e.g. 1 minute) skip the Yubico pam for subsequent authentications when a user ...
-3
votes
1answer
47 views

SSHFS over a jumphost

I have 3 computers. A, B, and C. A is the one I'm on now. B is a jumphost that I can SSH through from A to get to computer C using ssh -t B_host ssh C_host. What I'd like to do is mount C's file ...
0
votes
0answers
15 views

Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)

When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”....
0
votes
1answer
34 views

Skip password for Azure MFA with SSH

When configuring SSHD on a Linux server to use Azure MFA via RADIUS, is it possible to configure the MFA server to not ask for a first factor? My use case is that I want public key authentication ...
0
votes
0answers
41 views

Use SSH Tunnel with MSSQL

An owner of a MS SQL db has allowed access to their db from an IP address of a remote machine I own. I can SSH into that machine and connect to the DB using: ssh -i my.pem 100.0.0.100 sqlcmd -...
0
votes
2answers
43 views

SSH hangs between cloned machines

I'm having trouble with SSH sessions between two laptops on my network, A and B. A is a laptop I bought recently. B is the laptop it replaced. When I purchased A, I cloned B's hard drive. A thus ...
1
vote
0answers
66 views

SSH Tunnel - channel 3: open failed: administratively prohibited: open failed

ssh -D 9090 user@host when I try to request web pages through socks5 (127.0.0.1:9090) I get: channel 3: open failed: administratively prohibited: open failed server sshd_config: #MaxStartups 10:30:...
0
votes
1answer
28 views

strange behaviour multihop ssh

I have three machines A, B, C. The aim is to be able to transfer files from A to C. I have ssh access from A to B, and B to C; B and C are on a local network. This can be achieved with the scp -o ...
0
votes
1answer
35 views

Can ssh to EC2 instance but can't eb ssh

When I try to SSH to a certain one of my EC2 instances, it works fine: ssh -i "jason.pem" ec2-user@ec2-34-222-8-173.us-west-2.compute.amazonaws.com # the above works When I try to do eb ssh it doesn'...
2
votes
0answers
87 views

Suspicious ssh log entries (“Accepted none for anonymous”)

I got this log entry chain (and similar repeatedly) on my server: Nov 24 07:38:59 server sshd[28676]: SSH: Server;Ltype: Version;Remote: 54.38.81.12-40482;Protocol: 2.0;Client: OpenSSH_7.2p2 Ubuntu-...
0
votes
1answer
57 views

sshd log contains “pam_unix authentication failure” [closed]

I am getting the following error messages in my Linux machine. sshd[9287]: message repeated 2 times: [ error: PAM: Authentication failure for root from 172.16.2.1] sshd[9287]: Received disconnect ...
0
votes
0answers
20 views

ssh key revocation list and -z version number

I've been reading about setting up an ssh certificate authority and controlling access via key revocation lists. And in the man page, it lists a -z option for specifying a version number for a key ...
0
votes
1answer
29 views

How to expose a port+url visible to one machine to another

Essentially I have 3 machines: A, B and C A can see B (and vice versa) and B can see C (and vice versa). A can't see C (not part of the same network). I have access to A and B. Meaning I can start ...
0
votes
2answers
39 views

Can't Execute Script Commands via SSH

I'm currently working on a project I inherited that requires me to document the process for setting up a device we use to reimage our machines and install software on them. I'm using a Raspberry Pi ...
0
votes
1answer
23 views

Ensuring SSH Idle Connection TimeOut

In response to ClientAliveInterval and ClientAliveCountMax restrictions server side, a client can choose to send null packets by setting ServerAliveInterval and ServerAliveCountMax values ...
0
votes
1answer
74 views

I can't connect to my VM on Google cloud

I can't SSH my VM server, every time I tried it failed, please help: I can't connect to it via the browser, the error code is : (#79) I also can't SSH to my server via SSH client See Connection error ...
0
votes
0answers
41 views

SSH using domain name (not IP) with Cloudflare proxy

I'm trying to access my server using Bitvise SSH client, I'm able to access the server using IP, port, and ssh private key. What I'm trying to do here is use domain name, port, and ssh private key, ...
0
votes
0answers
14 views

Impossibile to login via ssh to ubuntu from Mac - stuck on expecting SSH2_MSG_KEX_ECDH_REPLY [duplicate]

i'm trying to log via ssh to a server i was able to login before... I am on a Mac os and the server is an ubuntu machine. The strange thing is that if i try to login via an SFTP client (like Transmit)...
1
vote
0answers
74 views

Possible MTU issues over OpenVPN causing SSH to fail

I recently moved away from using OpenVPNAS to use the community edition so I can have more concurrent connections without a license. I have the server away from me but I am on a WiFi network with two ...
-1
votes
0answers
24 views

Ubuntu 16.04 stuck on ssh version 7.2p2? [duplicate]

Did a network scan in my home VM lab and found several of my Ubuntu 16.04 VMs to be vulnerable to CVE-2016-6515, CVE-2016-6210 which was patched in ssh 7.3, however every bit of apt update/upgrades ...
0
votes
1answer
51 views

Unable to SSH from Mac OS to Ubuntu VM on Virtualbox

I was looking for some assistance with SSH. I have a Mac and on it, I have virtualbox installed. I have 2 VM's on it, one is a windows 10 VM and another one is Ubuntu. Both exposed to each other on ...
0
votes
0answers
38 views

Apaache Web Server On google compute Engine

I am getting this error when I try to connect to SSH Connection Failed An error occurred while communicating with the SSH server. Check the server and the network configuration. When I checked ...