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.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

How to blacklist an IP range (subnet) on cphulk via terminal? [on hold]

I know how to blacklist a given ip with /scripts/cphulkdblacklist 192.168.0.1 But that's what I need to do... (not sure if any of these would work) /scripts/cphulkdblacklist 192.168.* .* ...
9
votes
10answers
9k views

How to determine if I'm logged in via SSH?

I'm currently setting up a fairly complex bash configuration which shall be used on multiple machines. I try to find out if it is possible to determine whether I'm logged in via SSH or on a local ...
0
votes
1answer
8 views

How do diagnose laggy X11 applications running via ssh forwarding?

I am running an X11 application on a RHEL machine on my Windows system using Xming and X11 forwarding over SSH. The responsiveness seems terrible. A second between keystrokes and mouse clicks, etc. ...
0
votes
0answers
11 views

How can allow an ssh connection only over vpn

I install OpenVPN on my server following this guide --> https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04 I also setup a firewall with ufw where I add ...
0
votes
2answers
48 views

IP forwarding on Linux

I have three machines Source Machine Destination Machine - IP 10.20.30.40 Intermediate Machine - Host server1.test.com Source machine has SSH access to Intermediate machine and Intermediate machine ...
1
vote
2answers
624 views

Two-Hop SSH connection with two separate public keys

We have the following ssh hop setup: localhost -> hub -> server hubuser@hub accepts the public key for localuser@localhost. serveruser@server accepts the public key for hubuser@hub. So ...
0
votes
1answer
22 views

Firewall rules for ssh, ftp and webapps

I'm running a small cluster with Centos 7 and want the following rules for firewall. Have ssh access from anywhere (i'm going to further configure that from /etc/ssh/sshd_config) Have ftp access to ...
1
vote
0answers
22 views

Systemd/ssh: Cannot allocate memory

I have a host (Ubuntu 14.04.4 LTS 64 bit, kernel 3.13.0-85-generic) that has a lot of concurrent SSH connections. SSH logins have started to fail recently, and the log says: sshd[26057]: ...
2
votes
1answer
31 views

ssh “incorrect signature” while connecting to server

I have a server that I usually connect to from multiple laptops, some FC22, FC23, or ubuntu. I installed a brand new laptop FC23, added the relevant keys in authorized_keys, etc: [mathieu@xps13 ...
4
votes
7answers
13k views

SSH Session Inactivity Configuration?

I'm trying to zero in on the exact option, or combination of options, that will force each SSH session to be terminated when inactive for a specified time. I'm using Putty to SSH to a RHEL AS3 ...
2
votes
3answers
97 views

Converting SSH command to a PuTTY command

I am trying to translate the SSH command: ssh -N -L 1521:server1.com:1521 username@server2.com into PuTTY. -N: Do not execute a remote command. This is useful for just forwarding ports (protocol ...
8
votes
3answers
3k views

SSH through multiple hosts using ProxyCommand?

I have an entry in ~/.ssh/config on my computer at home that look like this: host foo bar ProxyCommand ssh -x -a -q gateway.example.com nc %h 22 where gateway.example.com is a server at work ...
2
votes
1answer
5k views

Vagrant not ready for SSH error on VirtualBox and Laravel Homestead

Vagrant Version: 1.6.3 VirtualBox: 4.3.14 Ubuntu 14.04 LTS 64 Bit Hey Guys, I have been on this for a pretty good while now and cannot figure this out. I have my public and private keys setup and ...
0
votes
1answer
40 views

Is there any way to log entered password from ssh?

My server is under attack and some one try to run brute force attack on my ssh port, I know that I can block the IPs which are illegal,with iptables,fail2ban, ... but I want to know which password ...
0
votes
2answers
1k views

How can I resolve a “Connection closed” issue on an EC2 instance?

I've run into this issue before and rebooting the instance, I assumed, reset the /root/.ssh/authorized_keys and the /home/ubuntu/.ssh/authorized_keys files. I've reboot the instance twice now and ...
3
votes
2answers
2k views

Public-Key -or- Password & Google Authenticator for SSH Login

I found an article (http://www.howtogeek.com/121650/how-to-secure-ssh-with-google-authenticators-two-factor-authentication/) that explains how to configure OpenSSH to ask for a Google Authenticator ...
2
votes
1answer
43 views

Forward SSH to another Host

I have an ubuntu server which is visible from internet, let's call it "jumper". And this server has this name actually because I need that whenever an user SSH this server, it jumps (or forward or ...
-2
votes
0answers
16 views

Not being able to SSH into server, working via WHMCS serial console [on hold]

I'm running a VPS (Ubuntu 15.04) and a simple web page on it. Recently I noticed that the page is not available, so I tried to ssh in to the server. It timed out (Connection timed out) I logged in ...
0
votes
5answers
7k views

verify sshd configuration

How I can verify the configuration of sshd? For example, I want to make sure that these settings are set and applied: AllowUsers user1 user2 PasswordAuthentication no PermitRootLogin no Is the ...
-1
votes
1answer
12 views

Setting up an ssh authentication server

I have some 30 Media Temple grid servers and I need to manage the access of 15 or so developers to those servers. Is it possible, and more importantly secure, to setup a server who's only job is to ...
1
vote
1answer
21 views

how to configure `sshd_config` so fail2ban can see bots

I've updated my sshd_config to be more strict against bots. namely: only keys are allowed, except for a few specified users on specific ips MaxAuthTries = 1 no root login This has been both good ...
1
vote
0answers
22 views

OpenSSH Windows Error

I want to connect with putty from one machine_1 to another Windows machine machine_2. So I install a OpenSSH Server on machine_2. I generate 2 a key pair with puttygen. I paste the public key in ...
1
vote
2answers
42 views

ssh enter passphrase one line

I want to execute a command via ssh but my server is using passphrase, I want to make one-line only without asking passphrase. ~# ssh -t root@dev5 'echo "tes" ; bash' Enter passphrase for key ...
-1
votes
0answers
31 views

Automated SSH script locked out

I SSH from my Macbook into a linux server with an automated macro util, and on 3 occasions in the last year it has not accepted my password. In those instances I used the host's provider's console to ...
0
votes
0answers
19 views

Remote port forwarding via ssh tunnel fails

I am trying to do some remote port forwarding via a ssh tunnel on my NAS (NAS4Free running FreeBSD), which is behind a firewall. I have added gateway_enable="YES" in /etc/rc.conf and also ...
0
votes
2answers
31 views

Tool for diagnosis/proof of network connectivity issues

I am in a shared workspace and am trying to communicate the issues I am having with the internet performance to the workspace provider. The main issue I have other than slowness is momentary ...
-2
votes
0answers
24 views

how to set date from the main centos server to all remote server using bash scripts

h! Actually i want to set date from the main centos server to all remote servers simultaneously and no any date on remote server might be different with the help of bash script. In short getting ...
2
votes
1answer
45 views

How can I set the root password in a docker container from a script?

I have a script that runs on the host and creates/starts/stops a docker container. I'd like the script to change the password of the root user within the container. Since the container is an ssh ...
2
votes
1answer
48 views

Debian : SSH port attack continues, cannot change port coz of provider, suggestions?

We have a debian server, which is running our Tomcat hosted applications and we have installed Fail2Ban on it. Everyday morning I see that a lot of people on the internet try to attack the server. ...
0
votes
0answers
28 views

Can access server via SSH/FTP but other protocols won't work

I followed this guide to setup an "Upside-Down Ternet." Everything was fine up until the part where I configured IPTABLES then I lost SSH connection. Now I expected that because I'm messing with ...
12
votes
4answers
12k views

Fingerprint of PEM ssh key

I have a PEM file which I add to a running ssh-agent: $ file query.pem query.pem: PEM RSA private key $ ssh-add ./query.pem Identity added: ./query.pem (./query.pem) $ ssh-add -l | grep query 2048 ...
-2
votes
2answers
46 views

send tmux command from inside ssh session

Inside tmux we ssh to a server that doesn't run tmux local>tmux send-key C-p # works local>ssh user@remote user@remote> tmux send-key C-p tmux: command not found It looks like this more ...
2
votes
2answers
1k views

Ubuntu server closing connection after successful login

I am unable to logon to my Ubuntu (12.04 LTS) server via WinSCP or sftp. There was previously a permission problem for ssh_host_* files in /etc/ssh. This was after I tried chmod -R from another ...
0
votes
0answers
19 views

SSH Works Unstable [closed]

I built an image with yocto project for Banana Pro board. I am trying to connect port via ssh root@10.1.80.x but I can connect very rarely. SSH usually the Entering interactive session stage. When I ...
2
votes
0answers
34 views

Can't find users logged in with notty via the who command

I was curious if anyone had any ideas why when I run who and who --all, I still cannot see users logged in under notty? See below: [cbennett@lstn ~]$ who --all system boot 2016-04-25 ...
0
votes
1answer
1k views

svn command not found for specific user

I am implementing a system for exporting the source code from my svn server to the client's server (where the web is going to be hosted). I asked my client to install subversion in his machine to be ...
0
votes
1answer
43 views

Remote SSH Tunnel external access

I've setup a remote ssh tunnel from my Raspberry Pi, which is behind a NAT, to my vServer using the follow command: ssh -ngNTfR 62.75.145.118:2209:localhost:22 root@unkn0wn3d.com 62.75.145.118 is ...
-1
votes
0answers
11 views

ssh connection to mft server using bitvise

I have install bitvise server and am trying from the workstation to connect to a dedicated managed file transfer server using ssh connection to upload a file. MFT server accept ssh connections. I need ...
-1
votes
1answer
43 views

Linux SSH abnormal activity

I found an IP 192.168.1.100 accessed to localhost with public key successfully for 38204 times within two weeks. I checked secure file for more detail about this IP. This client logged in for every ...
2
votes
2answers
25 views

How much protection is provided for my remote centos vps by using certificate-only root login

I have two leased centos servers, one to run mysql for backends to the web and mail server on the other, as well as data from my android apps. I am only planning to give access to the data server if ...
2
votes
1answer
19 views

How to define SSH port for target server with znapzendsetup

I have a firewalled server to send data to over ssh on public network, but the SSH port is not the default 22. How do I configure the port to znapzendzetup? For mbuffer setting the port is not an ...
3
votes
1answer
3k views

Anonymizing OpenVPN Allow SSH Access to Internal Server

I'm using an anonymizing VPN, but want SSH access to internal computer. How do I access my internal computer through SSH? When I do ssh 98.123.45.6, the connection times out. IP address from cable ...
0
votes
1answer
18 views

Which ssh starup script is invoked by ubuntu?

I am trying to run two sshd processes, one for admin and one for sftp. Ubuntu 14.04 on digital ocean has both upstart in '/etc/init/ssh' and init.d in '/etc/init.d/ssh`. Is this just digitalocean or ...
1
vote
2answers
1k views

/etc/init.d/ssh restart does not reload the configuration

I've added a chroot configuration to my /etc/ssh/sshd_config. I reload the configuration file using /etc/init.d/ssh reload, then try to connect using an SFTP client, but nothing changes, the user is ...
2
votes
1answer
1k views

connect-to-oracle-db-9i server-using-ssh-tunnel-via-putty

I am trying to connect ORACLE DB behind NAT so i choose SSH TUNNEL via putty so here is the information Global i p example: 122.54.34.12 LAN i p example : 192.168.3.103 ORACLE DB_PORT : 1521 and ...
22
votes
2answers
22k views

Multiple public keys for one user

This question is similar to SSH public key authentication - can one public key be used for multiple users? but it's the other way around. I'm experimenting on using ssh so any ssh server would work ...
0
votes
0answers
6 views

ssh X11 forwarding [migrated]

I am trying to connect ssh from my laptop to my raspberri pi 3b locally. However when I try to connect by: ssh -v user@local-raspberri-IP it gets stuck at X11 forwarding. The output that I get is: ...
1
vote
1answer
28 views

SSH'ing with force pseudo-tty allocation doesn't print my MOTD

I know that -t option in ssh allocate pseudo-tty. I'm using -t to "jump" to different directory on login, something like this: ssh -t my-server "cd /path/to/my/directory; bash --login". Why if I log ...
3
votes
1answer
23 views

copying files over multiple ssh tunnels

I have an awkward situation in which I need to link to a machine through multiple tunnels. Details why below, but this command works for sshing in to server2: ssh -A -t username1@portal1.host1.org ...
5
votes
1answer
2k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...