Newest ssh Questions

Q&A for system and network administrators

What's the best way to speed-up data retrieving from a remote MySQL database server?

Scenario Two servers: ApplicationServer1 and MySQLServer1 MySQL remote database server is connected to ApplicationServer1 through an SSH tunnel (kept alive using autossh) The problem Since I ...

Any downsides of starting a SSH connection as root?

I'm aware that allowing root access to a server over SSH is a bad idea (i.e. allowing login as root over SSH). But how about the other end of the equation? Are there any downsides of initiating a SSH ...

ssh agent give me a warning for a fingerprint it has already stored in known_hosts

When I try to ssh copy a file to my web server, I get the following message: The authenticity of host 'xxxxxx' can't be established But the RSA key it prints me is the same I have when I run: ssh-...

ssh can't set compression level to more, than 6

When I do (I've tried various ways): ssh -v -C -o CompressionLevel=9 user@ip ssh -v -C -o 'CompressionLevel=9' user@ip ssh -v -o 'Compression=yes' -o 'CompressionLevel=9' user@ip ssh -v -o '...

Esxi file ssh config chnages to make non permanent and permananet

I have dedicated server with esxi. I added extra user to esxi and added its keys in /etc/keys/keys-user/authorized_keys Then i rebooted server and that keys folder was gone. Then i find that i need ...

SSH fails after Port change on CentOS 7 with Plesk

After changing the port. And restarting the SSH service, it failed on me. I got the following info when I ran systemctl status sshd.service: sshd.service: main process exited, code=exited, status=...

Remote SSH command hangs, but only when executed through Jenkins

Disclaimer: I'm a bit new to the community, please be gentle :) I'm having an SSH issue that I just can't seem to explain. As a bit of background, here's the problem that I'm solving: There are ...

How to eliminate 'Identity added' message in terminal generated from ssh entry in .bashrc file?

I set up a VPC on Amazon Web Services where I ssh into multiple Ubuntu AMI's from one bastion host AMI. I added: ssh-add /home/myuser/.ssh/aws.pem to my .bashrc file on my local machine (Ubuntu 16....

Tracking down reason for connection refused on 8th successive ssh connection

I am using a code deployment service that connects to my server and execute commands. It connects, run some commands, disconnects and repeat. I am always getting connection refused on the 8th ...

Can't connect to remote host via ssh tunnel on port 5432

I have PostgreSQL installed on a remote host running Debian 8. I must use a ssh tunnel via a proxy server to connect to this remote. I have no problems: in connecting via ssh on port 22, in running ...

Debian - Allow only one user to login from any IP via ssh

I want to configure server so only one user (git) is able to login from any IP address (using key), the other users just from specified IPs. Currenly my configuration allows to login any user from ...

ssh key passphrase wrong but it's right

I can't use my ssh id_rsa/id_rsa.pub keys because looks like ssh thinks that entered passphrase is wrong. But I'm sure that it's right. Here is how it looks: ssh myuser@myhost_ip -i ~/.ssh/id_rsa.pub ...

SSH forwarding domain:port to EC2 instance

I have a host local-dev that maps to a VM's IP address. Theres an AWS EC2 instance running a webserver, to which I want to enable ssh forwarding on a certain port i.e. I want it to forward any ...

how ssh-agent process is increasing on every login

i have added the following line in my .bashrc file to start ssh-agent if it is not running. if [ -z "$SSH_AUTH_SOCK" ];then eval `ssh-agent -s`;ssh-add ~/.ssh/my_private_key;fi But every time when i ...

408 errors from apache, “fork: cannot allocate memory” from dhclient and sshd

For the last three nights in a row, I've had an EC2 server start to give 408 errors in response to web requests. When I come in in the morning, I can't ssh in; I have to reboot using the management ...

Unrecognized SSH access on server?

I'm running a basic Ubuntu server from Digital Ocean, which I use an SSH key (stored on my Desktop) to access. I've just run netstat -ap with the following result: Local Address Foreign Address ...

OpenVPN Client initiating multiple connections causing SSH connection to fail [migrated]

I have an ODROID C2 with an armv8 processor running openvpn as a client. I made separate configurations for it and my other computers. My raspberry pi is running the openvpn server. Connecting to ...

why Microsoft doesn't use SSH? [closed]

I'm newbie to Microsoft server world , as Linux admin ssh is great way to control server . Why Microsoft doesn't use SSH to control server via power shell ? ps: i know it possible via hack like use ...

Nagios check_by_ssh returns status 3 even though running the command manually works?

Following virtualisation of a datacentre, I'm replacing an elderly internal-use-only Nagios server with a new one on a new VM. For simplicity and because we know it works I've simply replicated the ...

Reflection SFTP Client Error - Message length read returned 0. Assume Connection closed

I have a client who uses some form of the Reflection FTP client, and I have very little experience with this solution. We recently upgraded our SFTP/SSH server and 90% of our clients have been able ...

Linux\QNX firewall rules

I have a device running Linux/QNX and it does not seem to use standard firewall commands to configure it. It blocks SSH and PINGs from other networks. I would like to open the firewall to allow all ...

How to use plink to create SSH tunnel to database?

I'm working on some software that has a local database, but also needs access to a database on AWS. The database is behind a web server, so the way that I need to connect is to create an SSH tunnel ...

Is DNS smart enough to route local connections via the shortest (within LAN) path? [migrated]

Say I have a domain name that points to my IP address. I have a router that handles port forwarding to a server in my living room. If I type the domain in a browser for example, it would eventually ...

Win32-OpenSSH - random error message (error in libcrypto)

I have a landscape as below: SFTP server with OpenSSH, a client PC to connect to it using public key. After connection is made, it will execute some scripts for business purposes. The connection is, ...

can't su to a local account

I am trying following this guideto give root privileges to a user called deploy. But I am unable to su to deploy user. Steps I have taken, logged in as a root user then I added the deploy which is ...

Identify clients in VPN network

I have a bunch of devices (raspberry pies) which are located in different buildings and networks and are constantly sending me some data. I need a way to be able to ssh to the devices. I am thinking ...

Opening a proxy via SSH behind NAT (router), with a middle man (Server with a public IP) to broker the connection between clients and proxy providers

PC2 (Linux) – Router – Server (Linux CentOS 7) –Router – PC1 In regard to the simple image above, this is what I would like to do. Open up an SSH proxy on PC2 so that the PC1 can use it as a proxy ...

Provide sudo password over ssh while using Bash process substitution?

My question can be seen as an extension of How do diff over ssh? with a little twist. Environment macOS Sierra (10.12.3) OpenSSH 7.3 Example situation I am trying to print a diff between two files,...

Configuring Debian for multiple web apps and admins

I became a single admin for a Debian server on VPS with two web apps running. First web app, let's call it "niceone", is in /srv/niceone, and there is user niceone whose home directory /srv/niceone is....

Why is SSH not resolving this hostname?

When I try to SSH to a host on the network named storage, I get a DNS resolution failure: $ ssh storage ssh: Could not resolve hostname storage: Name or service not known But when I query DNS with ...

How to allow SSH only from local network via iptables [on hold]

I would like to configure iptables to allow SSH on port 22 only from IPs from 192.168.*.* and block from every other IP.

Why should I use Public-Key Authentication for SSH?

I am running a SSH server and I am still using simple password authentication. Everywhere I read about security I am advised to use Public-Key Authentication. But I don't get the advantages. Using ...

SSH Lockout after failed login attempts

I have an Ubuntu Server for my git repositories and other stuff. Sometimes someone trying to hack it (I think it's ok for servers) and after few failed login attempts SSH is locking out. I mean no one ...

Permissions on chrooted user not working after update on Amazon Linux

I setup chrooted users on an Amazon Linux development instance to grant them access to the /var/www folder. It was working fine, but after a yum update (November I think), the users can no longer ...

SSH key authentication login issue with PAM

After setting up key authentication for SSH i'm having the following error : ssh remoteHost System is going down. Connection to remoteHostAddress closed by remote host. Connection to ...

ssh command crashes after key exchange [migrated]

Had this strange issue crop up today that I haven't experienced before. I execute ssh <remote ip> and ssh crashes with the following exception: dyld: lazy symbol binding failed: Symbol not ...

SSH - “Exit signal received…” in multiple connections at same time

I have multiple client connect to Win32-OpenSSH server. At exact moment, most of them (3 out of 4, for example) disconnect altogether. The 4th one is normal In sshd.log, there're "exit signal received....

How to create a rsync site bundle per each site hosted on my remote vps

Hopefully title does not create confusions to the reader, but yes I have to admit that I had difficulties in understanding how to setup the rsync. In a nutshell, I'm after a similar configuration to ...

Upgrade path for HostKeyAlgorithms

I'd like to change the default setting for HostKeyAlgorithms for all SSH connections to prefer ssh-ed25519 over ecdsa-sha2-nistp256. But I currently have ecdsa-sha2-nistp256 host keys for many hosts ...

php ssh2_exec hangs on “crontab -e” command

I connected to remote server with ssh2_connect. In my secure log I got Feb 22 11:41:57 centos sshd[3243]: Accepted publickey for subscr from 83.166.241.41 port 53306 ssh2 Feb 22 11:41:57 centos sshd[...

How ssh work with RSA and DH [on hold]

I have heard SSH use RSA and diffie hellman. I have also known the key exchange process as following. 1. Client init 2. Server init 3.Key exchange request 4. Reply 5. New keys It use DH during key ...

SSH into Mac server and port forward - Possible to tunnel the connection? [migrated]

I set up a server at home, and I never got around to anything else than remote SSH access (basically port forward port 22). Now I'm outside of home, and I realised how much I actually need to use the ...

OpenSSH: Different Authentication Methods

I have the need of having users logging in to a CentOS system with different authentication methods. Some using password and others using public key. I followed the methods mentioned here: How can I ...

Pulling to server remotely from GitHub, remotely

I want to setup a deployment workflow from GitHub to my Digital Ocean server. To do this I don't want to have to login to the server and manually run git pull from my server's repository. I'm aware ...

Trouble forwarding SSH and HTTPS access to a VM from Fedora machine

I have a CentOS VM that runs on Fedora that I am trying to connect to from another machine on a network. I tried: iptables -t nat -A PREROUTING -d 192.168.9.100/32 -p tcp -m tcp --dport 2222 -j ...

Network error: Software caused connection abort(SSH)

Firstly i apologize my English. Our Azure Linux(Ubuntu 16.04.2 LTS) instance has been running for more than a 2 months now. Suddenly tuesday night without any configuration to server, I get randomly "...

Public key authentication fails on port 22 but succeeds on alternate port

I am able to log into my server with a password, but not with my public key. I'm running CentOS release 6.3 (Final) on a Rackspace.com server I added my local ~/.ssh/id_rsa.pub to the remote server's ...

Bash memory leak disconnected me from SSH?

Can someone explain to me what happened here? I simply typed cd /some/directory, maybe I pressed tab for directory listing, when the following happened and I got disconnected from the server: me@...

difference between https git clone and ssh git clone

Hi I am using git for a while now however I am new to enterprise git. here Is what I did with my test-repo I created a ssh key pair and added public key to my test repo as deploy key. Now I can clone ...

Cannot cd to .ssh [migrated]

After adding new ssh key to .ssh/authorized_hosts I can no longer ssh to the machine without entering password. What is even more funny is that the .ssh directory is suddenly inaccessible when I'm ...
Translating... 0%