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.

Filter by
Sorted by
Tagged with
1
vote
0answers
23 views

When using hotspot Wi-Fi, I can't SSH into my EC2 Instance

I've never had trouble with this until I started using hotspot Wi-Fi instead of my normal Wi-Fi. I always get connection closed by xx.xxx.xxx.xx when trying to SSH into my Amazon instance: jeff@jeff-...
0
votes
1answer
22 views

Why does `lynis audit system` suggest to change the `sshd` port from `22` to '' (empty)?

I ran a lynis audit system on a reasonably fresh ubuntu 18.04 instance, and of the more intriguing suggestions it made was: Test: Checking Port in /tmp/lynis.AT7qAndGzq Result: Option Port found ...
0
votes
0answers
16 views

megacli does not work via SSH

megacli on CentOS 7.6, it works well when access via local host. but not working when access via SSH. use megacli via localhost, it drops information normally. but SSH just drops Exit code : 0x00 ...
0
votes
0answers
29 views

Can't connect to my instances via ssh

I need help with google cloud platform. When I create new instance it automatically blocks project-wide keys. Unchecking it doesn't help - after saving it remains checked. Project specific key can be ...
0
votes
0answers
18 views

SSH request is blocked by the firewall but it is logged correct and the request works inside the server

I use shorewall to forward the SSH port 10100 to VM:22. The ssh request on the gateway to VM works (standard port 22). From a client the ssh request doesn't work (timeout) The DNAT rule has the ...
0
votes
0answers
11 views

virtmanager: install via debian netinstall, reboot find not boot device, recovery mode can access

I used the virtmanager to create a virtual machine. The install medium is the debian netinstaller (Version 10, buster). Installation works without problems. Rebooting fails: no boot device found ...
0
votes
0answers
13 views

sshconfig - two account same CIDR block for VPC

I have two AWS account with 1 VPC's each in the same CIDR Block. Besides that I have a bastion machine in each VPC. Account A CIDR = 10.0.0.0/16 Bastion = Public IP A Account B CIDR = 10.0.0.0/16 ...
0
votes
1answer
23 views

SSH Port Forwarding not working

I have two CentOS 7 servers (Hypervisor and Relay for this scenario) . I wish to connect to a VNC port on Hypervisor which is behind a firewall by using Relay with is a server with SSH open to ...
0
votes
1answer
21 views

AWS AMIs always need SSHD Running? (VirtualBox upload / conversion)

I am an AWS EC2 NOOB, and not a Linux expert. I have finally succeeded in installing an Ubuntu Virtual Machine from VirtualBox onto AWS and have gotten it to launch and ssh connect. However, I had ...
0
votes
1answer
21 views

How to call a host from .ssh/config in zsh by alias together with $1

How can I call a Host which is defined by my ~/.ssh/config in an zsh alias dynamicly with $1? I wanted to use it together with xpanes like this: alias xpanes-jumphost="xpanes --log=~/log --ssh -i $...
0
votes
1answer
29 views

Keep losing sshfs connection on Linux Mint 19

Edit: I set the dev up with a brand new laptop with a fresh OS install. Connection was still lost. Moved her to a different desk (which would be a different port on the switch in the closet), and the ...
-1
votes
0answers
49 views

EC2 instances silently dying

Currently I've had three ec2 instances suddenly die on me. They are on 2 different private subnets in a single region and all my health checks suddenly failed... can't ssh, can't ping, can't access ...
0
votes
1answer
45 views

AWS Ubuntu can't ssh after install apache

On our EC2 instance (t2/Ubuntu) I've been able to ssh to the instance but can't any longer. I installed Apache and then tried accessing the web server via the IP. With no luck I assumed possibly ...
-1
votes
1answer
26 views

Trying to ssh into two machines on my home network. Getting connection refused on one of them [closed]

My router has a static external IP, EXTERNALIP. I have two machines with static internal IPs on network, INTERNALIP1 and INTERNALIP2. I have port forwards on router as such... machine1 external ...
0
votes
1answer
15 views

Enabling Multiple user shell access on the VM from Vsphere 5.1

I have created an ESXI user and enabled shell access in Vshere 5.1 so I can login with the user remotely from Putty. But I get access denied error on entering the ESXI user credentials. Can Someone ...
0
votes
0answers
22 views

CPU not fully utilized when logging in via SSH

I have a desktop computer (with i7) that runs Ubuntu 18.04. I am using Docker to run a container that trains a model using Keras. The issue described below persists even when not using Docker. The ...
0
votes
1answer
24 views

Can't connect to HyperV Guest (Ubuntu) via SSH

i can't connect to the virtual machine via SSH. The diagram shows the network and it's connections. On the ubuntu-virtual-machine, the SSH-Server is running. Do i need to enter (with the ubuntu ...
0
votes
0answers
13 views

Domain issues of the Linux server which is cloned from other Linux box

We have cloned one of the Linux server from other server which is already part of domain. now we try to add the newly cloned Linux box to the domain, it was successful but we are unable to ...
0
votes
1answer
54 views

Rsync doesn't work in script

I have 3 servers. On 1 server i have 2 scripts: 1st script: ssh root@1.1.1.2 'bash -s' < 2.sh 2nd script: rsync -av --update /root/backup/* root@1.1.1.3:/root/backup/ I want to connect from ...
0
votes
0answers
18 views

Allowing SSH on a server with an active OpenVPN client with firewalld

This answer explains perfectly how to allow SSH with an active OpenVPN client... for IPTABLES. ip rule add from $(ip route get 1 | grep -Po '(?<=src )(\S+)') table 128 ip route add table 128 to $(...
0
votes
1answer
17 views

Perl - SSH and run backup while retain the session

Hope someone can help me here. Looking to redo my bash ssh script for cisco devices, and add on to it. Basically, my idea is to have an SSH to log me to the device in enable mode (so i can do regular ...
0
votes
0answers
34 views

can't ssh on linux ssh_exchange_identification: Connection closed by remote host

I'm trying to ssh into a red hat 7 linux server and I am unable to. I am getting an error: ssh companyadmin@10.48.216.147 OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration ...
-1
votes
1answer
50 views

Global authorized_keys associated with a user?

Is it possible to have a global authorized_keys file that associates each user to their own public key? For example, I would like to create multiple user accounts by their Github user name and public ...
0
votes
1answer
52 views

Delegating host in SSH file

I would like to "delegate" one host to another in my .ssh/config file, i.e., I would like the following: ssh machine-a ...to use the configuration for machine-b. Is there a way to do this? I am ...
0
votes
1answer
30 views

SSH proxy using Websocket [closed]

Need to send SSH commands on clients connected using websocket client. Centralised ssh web ui, from where User can fire ssh commands on various clients (on one client at a time). infra we have plan ...
0
votes
0answers
18 views

How to allow SSH when OpenVPN client running in VPS [closed]

I can't access VPS through SSH.When VPS connect to VPN. But if in remote side connect to vpn and then access VPS. Its work. Its like VPN override settings in VPS when running. Client config client ...
0
votes
2answers
45 views

SSH Putty Connection Timeout Issue

Hi I am getting a really annoying SSH Putty Connection Timeout Issue which I can not fix Happens when its running a command which is taking a while - some of the commands I run can take 2 hours or ...
0
votes
0answers
37 views

Stopping SSH brute force from China - fail2ban not working

I see things like this in my /var/log/auth.log sshd[2173]: Unable to negotiate with 218.92.0.205 port 21029: no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth] sshd[1964]: ...
0
votes
0answers
28 views

Could not resolve hostname nodename nor servname provided, or not known only with rsync

I work with sensitive data, so my host requires that I use a bastion to access the server. I can connect to the server without any problem in SSH using the following command: ssh userremotemachine@...
0
votes
2answers
41 views

How to make in SSH private key from one line, three lines [closed]

i have ssh-key, something like this -----BEGIN RSA PRIVATE KEY----- my_super_secret_password -----END RSA PRIVATE KEY----- Of course this key does not work. When i am doing manual things, something, ...
0
votes
1answer
15 views

Argument param to login to SSH with password on Windows 10

In *nix, the sshpass package is used with the -p param to login with password. What is the equivalent command for Windows?
0
votes
1answer
37 views

I can't connect via SSH in my compute engine (web)

Since last week I can't log into my virtual machine via SSH (via web). Already increased the disk space, increased RAM, already created a new SSH and includes in metadata, nothing worked ... When I ...
0
votes
1answer
31 views

SSH issue with GCE VM Instance

I've been trying to solve this for a few days without luck and similar questions/answers on this site don't solve the problem. I have 3 different VM Instances on GCE and everything works fine on two ...
0
votes
1answer
32 views

GCP metadata Transferring to SSH Keys - Permission Denied

I'm not sure if this is a problem related to the Debian version because I don't have this problem in an old debianv8. I'm trying to add a new ssh key to my instance (I have one user it is working) in ...
0
votes
1answer
21 views

SSH host key check fails on Debian version, but not on MacOS version

I have this strange situation with host-key checking. ssh -v github.com: works with "OpenSSH_7.9p1, LibreSSL 2.7.3" on MacOS Mojave (10.14.5 (18F132)): debug1: Server host key: ssh-rsa SHA256:...
1
vote
1answer
26 views

RSA key pair is not allowing me to authenticate to my backup server [closed]

I have a server that authenticates SSH through RSA key pairs. Yesterday my rsync backup worked successfully I know this because of log files: /var/log/backups_log$ ls -l total 815536 -rw-r--r-- 1 ...
0
votes
1answer
26 views

Why ssh doesn't find identity file while ssh-copy-id does?

After renaming identity files id_ed2519_2(.pub) to id_ed2519(.pub), ssh-copy-id can connect to remoteserver using file id_ed25519 (it asks for passphrase), while ssh can't, unless I add an identity ...
0
votes
2answers
50 views

How to untar a very large file with missing space

I have reinstalled my server and before that i did a backed up. My backup is a tar file without special compress option (meaning that the size of the tar file is approximately the same than the size ...
0
votes
0answers
24 views

Unable to connect to database though MySQL Workbench after upgrading ssh

I am using Ubuntu 16.04 and I have the latest ssh version installed. I have disbaled in the sshd_config all the deprecated keys and algorithms. ciphers chacha20-poly1305@openssh.com,aes128-ctr,...
0
votes
0answers
33 views

2 minute ssh timeout. How to increase?

I'm trying to do a mysqldump via ssh, using a command like this... ssh -o "BatchMode yes" my-ssh-host "mysqldump ..." The issue I'm encountering is that the connection is timing out if mysqldump ...
0
votes
1answer
40 views

Can´t access to GCP instance after edit sshd_config

I have edited the sshd_config file of my instance (Google Cloud Platform) to change port 22 to a new port. Add a new firewall rule for the port, but now I can't connect neither to 22 or to the port ...
0
votes
1answer
23 views

pam_tally2 working is not as expected?

I have been using pam_tally2 to lock a user after certain number of failed attempts through ssh In /etc/pam.d/common-auth auth required pam_tally2.so deny=3 unlock_time=600 In /etc/pam.d/common-...
1
vote
2answers
66 views

Accidentally unlinked /usr/lib/libcrypt.a. Is there a way to recover from this?

I have been upgrading OpenSSH and OpenSSL and I have accidentally deleted the file /usr/lib/libcrypt.a and now most features in AIX just doesn't work. Is back-up/restore the only way to recover from ...
0
votes
1answer
31 views

OpenSSL upgrade to 3.0.0 and now OpenSSH fails in AIX 7.1

I have recently upgraded the built-in OpenSSL to 3.0.0. All testing after upgrade was working fine but on reboot to finalize changes SFTP and SSH have failed to initiate. I was no longer able to re-...
0
votes
1answer
114 views

SFTP login accepted, SSH login denied by Synology NAS

On a Synology NAS, I want to enable SFTP and SSH for some non-admin users. (SSH mainly for pushing to git repos on the NAS.) What works I was able to make SFTP work with different clients on Mac ...
2
votes
1answer
20 views

What does “No matching private key for certificate” mean for openssh certificate-signed host keys?

I'm trying to set up OpenSSH host certificates to cut down on the effort of managing ssh_known_hosts as hosts come and go at my site. I created a SSH key pair to serve as the CA key. I then set up ...
1
vote
0answers
23 views

Why does SSH return an incomplete Cisco running config when called with cron?

I'm trying to automatically download Cisco switch configuration every night to put it under version control. The command I'm using to test this is ssh -vvv -t -t -o nethelp@switch 'show running-...
0
votes
0answers
19 views

PAM Advanced Syntax (pam_rootok) not working as expected

I'm just experimenting with PAM and SSH. Keep in mind the OpenSSH server had a default profile, if you modify it, you will risk the security of your system! So I made an another sshd PAM profile for ...
0
votes
0answers
18 views

How to set TERM environment variable in ssh configuration?

I use this setting in ~/.ssh/config: Host server Hostname 192.168.x.x SetEnv TERM=xterm But when logging in to the server and doing echo $TERM, I get xterm-256color. How to set TERM from ssh ...
0
votes
0answers
44 views

Windows SSH Server - Disable Shell / Cmd access

I have enabled the SSH Server on Windows using the built-in feature. Since this server is only being used as a tunnel, I would like to disable any commands from being executed. On linux, it appears ...