Newest ssh Questions

Q&A for system and network administrators

How to get past kerberos blocker on scp-ing files?

I have a cluster with one master and one slave. From the master node, I'm able to ssh into the slave just by doing: ssh -vvv <user>@<ip>. Now, when I scp from master to slave it does ...

Can't delete/move innodb log file - iib_logfile Read-only file system

i'm trying to change the innodb log file size service mysql stop mv ib_logfile0 ib_logfile.bak service mysql start mv: cannot move ib_logfile0' tologfile.bak': Read-only file system why? thanks

MySQL cannot connect via SSH tunnel — Connection refused

I am trying to connect to MySQL from my MySQL GUI (Sequel Pro if it matters) using SSH tunnel. However, I keep getting the following error (mysql.log): [Note] Aborted connection 98 to db: 'example' ...

rsync with non-standard port and multifactor 2FA with Google Authenticator

SSH to my server works. But I've enabled Multifactor authentication with Google Authenticator. So during the process of SSH, it asks for my verification code. Issue now is I want to rsync to this ...

How do I completely disable both password and public key authentication on my server? [on hold]

in other words: how do I let anyone ssh into my server? I can't seem to find anyone else that has the same problem, everyone is just trying to disable password authentication. Is there anyway that I ...

SSH login alert for user tmpp from Israel

I have a CentOS server running cpanel/whm. Today I received a lfd email regarding someone logged in to my server ssh with username "tmpp". I don't know who has created this username. it's not listed ...

sshd is already running though keeps trying to start

I have a Centos 7 server and sshd is running and accepting connections just fine. The problem is, that messages log keeps reporting failed sshd startup attempts and secure log keeps reporting that ...

macOS Sierra ssh seems does not recognised hashed known_hosts?

As title, if you try to use ssh-keyscan -H <host_name> > ~/.ssh/known_hosts in macOS Sierra, then do ssh <host_name>, it will still ask you for identity confirmation, I wonder if its ...

ubuntu user crontab deleted itself

I have crontabs running as the default ubuntu user. Just today I noticed that my entire crontab was deleted and replaced with the usual boilerplate, as what happens if you execute crontab -r Some log ...

Connect Windows SQL Server to Linux MySQL Server via SSH tunnel

here's what I've got: we have a local corporate domain network and a webserver hosted externally. The webserver (linux with mysql) holds data we would like to access. The workaround we currently have ...

mySQL Workbench on Windows through two SSH hosts

I'm attempting to connect to mySQL through two SSH hosts and haven't been able to find a solution anywhere online. If I were connecting with Putty, I would connect to the first box (let's call it ...

Securing SSH with key-based authentication - how to “secure” the key itself? [on hold]

At first I would like to ask I am not server administrator nor network administrator on daily basis, so the question may sound silly to some of you. I have few servers (OVH, if that makes any ...

Bash aliases when sshing to a server with no home directory

I have several servers that I ssh into that do not have home directories, and It would be very useful to have a way on my client computer (which does have .bashrc, and runs aliases, etc...) to ssh to ...

centos 6.8 will not boot - error is showing under logs

My server rebooted when SSH was not working it had crashed and now it's having trouble rebooting. I have been able to go through the rescue operating system to look into it and I have found these ...

ssh -4 works but ssh -6 does not

When I attempt to ssh into my server it hangs for a long time. Looking at the output from ssh -vvv [host] shows it hanging when it attempts to connect to my server using its IPv6 address, then timing ...

SSH through intermediate host fails only on myuser@mymac but works elsewhere

I am not able to connect via ssh to one of my datacenter nodes using my user on my macbook. This is a recent problem, and it was perfectly funtional since ~ a couple of weeks ago. Strangely, this ...

Login some users as root with SSH and LDAP

I have a SSH + LDAP installation with users public keys stored in LDAP. I want that when some user in a list (configured into server) do a ssh connection with ssh user@server always log in as root. ...

Restrict SSH key to only execute rsync

I am working on a backup strategy for my servers with rsync. I followed this tutorial and to restrict the use of the SSH key, I make of this validate-rsync.sh script that I can also run without ...

SSH random connect timeout

I'm having a strange issue trying to connect to a server through SSH. More than 80% of times I get a connection timeout, but sometimes manages to connect. I'm behind a router so everyone in the ...

sshd: MaxAuthTries is ignored if it is greated than 3

I am using CentOS v7, and I tried to set MaxAuthTries 6 though this doesn't seem to work. I am using PAM so the property UsePAM yes is set. I am not sure if it is a bug or something else blocking the ...

Setup server to upload and store files from multiple users

I want to setup a server where documents from users will be uploaded and stored for access from a web interface. I am using a Debian-based web server and will have potentially thousands of users ...

Google Compute Engine - SSH connection failed after resizing the instance

I'm having troubles connecting to an instance on Compute Engine via SSH. If I try via command line I get the following error: Permission denied (publickey) The same happens if I connect via browser ...

why can I not log in to this server?

I am trying to log in to a centos 6.8 server and I have the ip address and correct password. It stored the private key in my known_hosts file, but then I forgot about. My colleague can login from his ...

cssh error 'bad pad value "3m'

I'm having issues getting clusterssh running on a RHEL7.3 install using KDE. I don't believe this is a Perl issue, as I have forwarded X from a CENTOS7 box that yields the same error (That box has no ...

want SSH banner to show up before OTP and password request

We use two-factor-authentication for some servers, i.e. OTP (one time password) token plus password. I want to provide users with some informations BEFORE they are asked for their credentials. With ...

SELinux - Script uploaded SSH keys to remote server but cannot connect via SSH

I wrote this script which now works perfectly on systems without SElinux installed. echo Enter server IP: read server scp /home/Zenoss/.ssh/authorized_keys random@$server:/home/random sshpass -p ...

Deny remote access to backup disk

I am trying to setup my own linux ftp/apache/ssh web server. The server is going have 2 drives. One for OS and one for backups. How can I deny any remote access to backup drive (even for admin if ...

Tunneling Using Plink: Command Line Option for “Local ports accept connections from other hosts” [migrated]

I am trying to forward port from A:1234 to B:5678. Now, C will connect to A:1234 and will get forwarded to B:5678. I could get this to work using PuTTY using this configuration: PuTTY Tunnels ...

Handling keyboard-interactive inputs with Ansible

I have setup a few GNU/Linux (Ubuntu and Amazon Linux) servers to prompt for Time-Based OTP using google-authenticator module for PAM and the keyboard-interactive:pam SSHD authentication method. I'm ...

Cannot connect from one AMI ec2 instance to another

I can connect from my windows PC using putty to my AMI E2C linux instances but I cannot ssh from one instance to another. I get the following error message, I have just copied the last part of the ...

Please help identify any weird processes [duplicate]

I'm in need of a hand. We recently had a server compromise and manage to do a nice clean but I'm trying to get rid of the bug without moving server. Can anybody review the running processes below ...

How to reuse ssh private key?

I can connect to server1 and server2 with ssh. Is it possible to connect to server1 from server2 without copy my private key to server2 with open session with server2 from my local machine?

How to configure Shrew Soft VPN to work only for outgoing ssh connections?

Intro Hello everyone, I have a ShrewSoft VPN configured on my server (server A) which allows me to connect to a specific server (server B) to which I cannot connect without VPN. I successfully ...

SSH host key checking cannot disable when using proxy jump

I am trying to SSH through a jumpbox, but SSH seems to be intent on checking host keys for the jumpbox, even though I'm telling it not to, using the normal -o StrictHostKeyChecking=no -o ...

Multiple VMs acting as web servers using KVM where only 1 external IP is available

I am trying to set up a server for my lab, on which we will run multiple web services and sites. Since there will be a few people setting up and administering those services, I decided (after lots of ...

How can I access Windows commands when accessing a Bitvise SSH Server in BvShell mode?

Due to various constraints, I have to access a Windows Server over Bitvise SSH server utilising BvShell mode. However, when I do this, Windows doesn't recognise commands that're in the environmental ...

This account is restricted by rssh can't login [on hold]

I got from my client login and password for ssh. I downloaded putty and try to connect but get this error: What does it mean? login as: u88333811-01 u886333811-01@home67320126933331-data.host's ...

PAM rules do not seem to take effect

Goal For mobile devices we wish to add an extra layer of security by requiring a PIN code upon ssh login. Mobile access is only a convenience service (users can always pull out their laptops) and ...

debian ssh connection refused after update reboot

Locked out with SSH from server after a Debian Jessie update and reboot(connection refused). No websites came backup after reboot but can ping the server. Can get to the server with host's Ubuntu ...

Synchronization over ssh with restricted access to the server file system

I want to synchronize (both directions) a certain folder between a server (S) and a local machine (L). On both S and L, I have the same system (Ubuntu) and a user jan, with sudo privileges (i.e. in ...

Too many authentication failures for ec2-user

I have an AMI linux, after a logout, at next login i get this error: The server has disconnected with an error. Server message reads: A protocol error occurred. Too many authentication failures for ...

SFTP via port 22 or vsftp over port 20 / 21 - Best way to secure FTP access to a server

I've read many articles and questions on SF about this, and still can't figure out if the way I'm doing it is (a) possible, and (b) secure. The server is running on AWS EC2, and all access is via SSH ...

ssh can't resolve second host from config when using -F

In order to access a certain machine I need to get through a proxy and then via a jumphost, before I'm at the desired location. For this I'm using a config file like this: ### jumphost Host jmp ...

sshpass failed to run command: no such file or directory

I am trying to use sshpass to copy a file between VMs. However when I run the command: sshpass -p 'password' rsync --rsync-path="sudo rsync" "/home/myuser/anaconda/Anaconda2-4.3.0-Linux-x86_64.sh" "...

Can I find local ssh private key from remote fingerprint? [duplicate]

Possibly I am missing something obvious but after getting fed up with 5 key limitation of ssh-agent I start looking for ways for a better ssh key management. If I create a new ssh key pair using ssh-...

Unison sync of sshfs mount - what can go wrong if the connection breaks?

I am syncing a local directory (say "/local") with a cloud storage server using Unison. The cloud storage is mounted to, say, "/mnt" via sshfs (with no-cache option), and I sync the two directories /...

ls -lt not working in SFTP

I log into sftp: sftp user@server Then I run: ls -lt I expect files to be sorted by date. sftp> ls -lt *.csv -rw------- 0 76547986 200 5073032 Mar 14 08:42 file1.csv -rw------- 0 ...

Ansible: imposible to connect to server SSH Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) [closed]

I have set up some ansible roles to configure a php web server. I use vagrant to my working copy and it works perfectly. But when I want to connect to a remote server I get this error: fatal: [...

how to change port for SFTP connection in Debian8 [closed]

i changed default SSH port with ssh in /etc/ssh/sshd_config and set it to 2211. now i can connect to server with ssh and new port, but in FileZilla when i try to connect to server with this new port (...

“Connection refused” by CentOS7 when trying to connect remotely with SSH

I installed the latest CentOS 7 version 1611 on a Hyper-V VM with static IP. Network and firewall seem to be set up correctly. Now I am trying to simply log into it remotely from Putty. I get "...
Translating... 0%