Newest ssh Questions

Q&A for system and network administrators

process user differently using ssh key

I wonder if it is possible to chroot/chdir/process the same unix user differently using the ssh key used in the ssh connexion... The use case could be a rsync server using only one linux/local user ...

SSH forced pseudo-terminal dimensions

I am in the unfortunate position of having to automatically use an interactive program via SSH. Obviously, there won't be a terminal available, but luckily SSH allows me to force it to allocate a ...

Close default SSH Port On Centos

I have been getting 1000s of failed logins per hour over the past few weeks and I'm sure 99% of them are from bots. I have installed fail2ban and I've been blocking some subnets, but i have also ...

CentOS 7 SSH and 2FA (ESET Secure Authentication)

I am stuck at getting two factor-authentication in CentOS 7 to work; specifically the authentication via SSH and OTP. I would very much appreciate it if someone could assist me with this. :) Edit: ...

Can't paste or type Japanese (or non-Latin characters) on Putty

I work with Japanese characters on Putty, and whenever I see question marks on Putty, I change the locale by typing export LANG="en_US.UTF8" Once I have done that the characters are shown on Putty ...

SSH multiple tunnels

I am on an AWS box and want to connect to a production machine through my local computer. If I just wanted to connect from my local computer, I could connect as follows: ssh -ND <port> prod-...

How to temporarily disable local forwards

I have in my ~/.ssh/config file entries with local forward definitions like HOST myServer hostname 10.10.0.1 user xyz LocalForward 8080 localhost:80 LocalForward 4000 127.0.0.1:4000 ......

Fail2Ban on Centos is blocking connections from Cygwin and WinSCP

I got over 3k failed login attempts yesterday morning which was the most ive ever seen. I did some research and Fail2Ban seems to be a good step to stopping this. I have installed it and it seems to ...

ssh-keyscan through a bastion

I have some test servers running behind a bastion on Openstack. The test stack gets deleted and created often. After the stack is created I run a set of Ansible scripts to install and configure the ...

symbol SSL_SESSION_set1_id_context, version libssl.so.10 not defined in file libssl.so.10 with link time reference

I am using python3.4 and everything works well as expected until i install Spirent STC (even Avalanche). These are the traffic generators and have their own PYTHONPATH to update. I just kept my ...

Chaining sshuttle commands over two hops

I have the following scenario: Host A: Mi machine Host B: Server - 192.168.1.1 Host C: Hop node - 192.168.2.1 Network N: 192.168.3.0/24 Using sshuttle what's the best way to forward and be able to ...

SSH from remote server, no SSH prompt

I'm trying to open an SSH connection from a remote PowerShell connection. Meaning PC1 (Windows) successfully connects to PC2 (Windows) via Enter-PSSession command. Once connected, I'm trying to SSH to ...

CentOS 6 ssh is not prompting for the verification code?

I have installed the pam radius rpm package, and successfully configured /etc/pam.d/sshd, /etc/ssh/sshd_config, & /etc/pam_radius.conf. I know it is working, as i am getting a push notification to ...

How do I use my .pem file from Amazon EC2 with mosh?

To login with ssh I do this: ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com I tried all this with mosh: mosh --ssh='ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com' mosh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com ...

Rsync from A to C thru reverse tunnel on B

Been searching for awhile on this and haven't found a solution. Machine C has a persistent reverse tunnel to machine B. I.e machine B can connect back to machine C thru the reverse tunnel. I can ...

SSH port filtered on machine only from within local network when using explicit ip address

To describe the situation, I need to define three machines. On the local network I have a machine (LAPTOP) and a machine (SERVER) connected over WAN and LAN to the router, respectively. The third ...

How to connect an isolated node to a public node via SSH tunnel

I am not sure how to put it in words, so created a illustration to show what my setup is like. DB Server and Web Server are in a VLAN, Web Server has a public IP, but DB Server does not. Normally DB ...

Run sshd with protocol v1 [closed]

For test purpose I am running a Centos 6.0 and I want to connect to that box using SSH with the protocol version 1 but it says ssh1 is not supported: ssh -1 centos-box ssh1 is not supported In my /...

AWS EC2 root lockout

Accidentally changed permission in home directly using command: sudo chown -R root:root . Logging into EC2 instance remotely no longer works. Changing users (with root privileges), or to root user ...

ssh: suddenly unable to log in with password (Permission denied) [closed]

I know that there are many similar questions on this website, but none of them provided an answer that allowed me to solve my problem. The premise is that I know practically nothing about ssh, but I ...

Using Putty to proxy through reverse SSH tunnel

I have a remote machine remotePi which uses autossh to maintain a reverse tunnel to a local machine localPi. When SSH'd into localPi, I can reliably ssh into the remotePi using localhost:3333. Now I ...

HTTPS over third-party SSH tunnel. Is it safe?

I just get a Linux server from a third-party. Then I create a SSH tunnel via SecureCRT: https://www.vandyke.com/support/tips/socksproxy.html , where the Linux server is used as the Gateway Server. ...

ulimit not reflected for jenkins master which is running on redhat

I already saw en.server.aiseen.org/questions/436138/ulimit-not-reflected-for-jenkins-slave#new-answer and the steps didnot work for me.Please, help. I am using jenkins on redhat and I have the same ...

SSH Jump Host WITHOUT Agent Forwarding

Although a simple question, I have searched for days without success. M = My machine J = Jump Host S = Server Jump Host has my public key on authorized_keys. Server has J's public key on ...

how to run gnome-terminal on remote centos 7 machine?

My local machine is linux mint, and remote one is centos 7. I try to open gnome-terminal on remote machine with x-forwarding, and its not working. When I connect to host in interactive mode $ ssh -...

Can't SSH into remote server after changing password

I previously followed this guide to add SSH keys to my remote server(I didn't hide or remove the keys from anywhere, just to be sure I don't lose access). It was passphrase protected. However I ...

Unable to ssh using mit-kerberos [on hold]

I have setup kerberos server and tried to ssh the server. I am able to get ticket using kinit user but ssh fails. krb5.conf [libdefaults] default_realm = CW.COM dns_lookup_realm = false ...

How to temporarily run a secondary SSH server on a separate port

How do you run an SSH daemon on a different port other than the standard 22? I screwed up something with my SSH configuration on a cloud VM, so that now SSH always prompts me for a password. My early ...

Manage SSH keys

We have around 2500 Linux servers. We have a Jumpstart server, from which we can SSH to any server for system administrator related tasks. We have deployed a single identity file and using the same ...

“Permission denied (publickey)” with “key_load_public: No such file or directory” upon SSH attempt

I keep receiving the following error upon running ssh -v -i privatekey user@server.org. OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/...

Configuring OpenVPN and SSH access (for another country)

So I am using OpenVPN to connect to an internal network. I have some users that require access from a different country (India). I created an SSH user and generated VPN certs for them to connect. ...

Ssh-agent timeout

I add manually my ssh keys by doing the following commands : eval `ssh-agent` ssh-add /... So when I, for example, pull from one of my git repositories, it works right after. If I try to do it the ...

Creating SSH keys

I'm new to this so I hope I don't ask nonsense. I want to send an SSH command to a remote server without password. On the local machine we have multiple users. On the remote machine there is only ...

Error authenticating via SSH

One of our clients is attempting to start an SFTP session on our file transfer server. When they try to authenticate we see these errors in the auth.log. Jan 16 11:24:34 ft sshd[6898]: error: kex ...

Deleted Authorized Keys from .ssh - How can one tell if someone logged in with the keys recently?

I'm doing some clean up on one of my servers and I have a bunch of keys in my .ssh/authorized_keys The problem is I want to delete them but I'm not too sure if they are still even used. Is there a ...

shell script for running ssh-agent

Good day, I have read through the similar topics all day long but unfortunately could not find the answer suitable to my situation. So here is what I'm trying to do. I have the shell script with quite ...

Red Hat server blocking SSH from firewall but allowing from other machine behind same firewall

I have two Red Hat VMs behind a firewall with IPSec VPN access configured. Once I connect to the VPN, I cannot SSH into one of the machines (using terminal on the Mac). However, I can get into the ...

When PuTTY's window is closed the sshd session may not go away

This is a strange one. I asked a colleague and he was also surprised by it. We have a shell script that does whatever some such say_hello.sh: #!/bin/sh echo -n "Please enter your name: " read uname ...

Google cloud unable to connect to the VM on port 22

I am using Google Compute engine to host couple of sites but I resize the disk and then restarted the instance and now I am unable to connect both from gcs and putty. ( Connection Refused ) Serial ...

Local port forwarding and Putty connection

I have 2 ssh-servers on virtual machines. Debian (192.168.141.129) and Kali Linux (192.168.141.136). On Debian I forwarded local port 22 to Kali port 2027, so on Kali when connecting to local port ...

How to connect to remote server?

I want to connect to a remote server. Before this command worked perfectly : ssh -i vpsMain root@163.xxx.xxx.xxx I need to connecto a other server on this VPS and beacause I've this error when I ...

nftables configuration - allow mac on tcp port

im new in firewalls etc. readed nftables quick reference how to allow only my mac address (my device - laptop, phone etc.). allow my mac to access ssh port (port:22) tried that: ether saddr 00:00:...

What's a clean and secure way to let the user Apache do SSH cloning from same machine?

I have an Apache server that will host several sites and a private web interface that aims to automate the deployment of a site from a git SSH URL. Those git repos are on the same machine, hold by a ...

How to exit a SSH connection in a bash script

I've read several posts on here about this topic but every solution I find seems to be a one liner where you run one command. I'm creating a script where I ssh to several different hosts one after a ...

Why is fail2ban finding but not banning

I noticed something strange on my Ubuntu Xenial server. It has SSH on the default port and it has fail2ban. Fail2ban is detecting brute force attempts on the server and are logged accordingly: 2017-...

Chrooted SSH - SFTP doesn't work

I migrated a server a while back and it's been working fine, even the chrooted SSH accounts. The client just noticed however than on those the SFTP doesn't work : Error: Received unexpected end-of-...

Locked out of my Ubuntu server

Everytime I try to log in (SSH) to my Ubuntu 14.04 server (DigitalOcean) it opens Letsencrypts certbot and asks me to choose a domain to install SSL on (already have it activated). But after that, it ...

SSH sessions doesn't terminate correctly

I'm having issues with some ssh sessions that doesn't seem to terminate properly. To make things even worse, the customer whos sessions is getting "stuck", well, they seem to have some kind of ...

SFTP reverse proxy

Serverfaulters. Short: I'd like to publish several SFTP servers through one server (reverse proxy/relay). How could I do that? Long: there are three components: -...

putty pageant stopped working with Fedora 25

I have used putty & pageant for many years to remote into servers without having to enter password. All of the sudden, with Fedora 25, I get prompted for password. Fedora forum has not been ...
Translating... 0%