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
2answers
28 views

SSH Connection through a Reverse (Remote) SSH Tunnel

This is the setup I have : a Linux box A inside a LAN behind a firewall. a Linux server with a fixed IP address that is accessible from the internet. I want to be able to connect to the Linux box ...
0
votes
1answer
5k views

Able to connect by SSH, but not x2go

I am having trouble connecting to a remote server with X2GO using a DSA key. Connecting works fine over SSH, but when I try to connect with X2GO, it goes immediately to the username/password box and ...
2
votes
2answers
936 views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
9
votes
5answers
9k views

How to scroll back in screen within a ssh session from OS X?

I do the following: Open Terminal.app Open a ssh session to a remote Linux server Open a screen session on the server Start a program who breaks with many lines of error reporting… How can I ...
87
votes
4answers
40k views

What's the difference between authorized_keys and authorized_keys2?

Just wanted a quick summary of the differences between them and why there are two? Cheers
0
votes
0answers
20 views

NAS requires SSH password after power outage/reboot [on hold]

I've generated keys and I was able to log in (without manually entering a password) onto a WD MyCloud NAS: ssh sshd@111.222.333.444 But after a power outage, the NAS received a new IP address and ...
0
votes
1answer
3k views

very slow connection to ssh server from client (but not other servers)

I have an Ubuntu 12.04 laptop that is taking so long to connect to various servers (in different data centres) that it seems like a bit of a lottery whether I'll actually get a connection. If I ...
0
votes
2answers
3k views

check_ssh executed from Nagios server returns “Server answer: ”, nothing else

Commmand works on the host I need to monitor (its IP is denoted as $HOSTADDRESS$ here): [root@host ~]# /usr/local/nagios/libexec/check_ssh localhost SSH OK - OpenSSH_4.3 (protocol 2.0) However, on ...
0
votes
0answers
15 views

Monitoring via SSH cause max-file-descriptor notice

We have Solaris 10 servers at our company and we are using an monitoring application which polls the servers via ssh. Every time the polling is done we notice max-file-descriptor kern. notice on the ...
38
votes
9answers
13k views

How can I run arbitrarily complex command using sudo over ssh?

I have a system that I can only log in to under my username (myuser), but I need to run commands as other user (scriptuser). So far, I have come up with the following to run the commands I need: ssh ...
0
votes
2answers
38 views

Ssh Auto login twice VIA putty.exe – it is possible? [on hold]

With the following command I can login automatically to the server: putty.exe -ssh Maihabunash@100.19.1.3 –pw secret123 Is it possible to login twice? for example first I want to login to the ...
8
votes
2answers
2k views

SSH Allow Password For One User, Rest Only Allow Public Keys

Is it possible with ssh to allow passwords from a certain user, but deny using passwords for everybody else? Basically I want to allow password auth for user justin but everybody else must use public ...
10
votes
6answers
6k views

Is there a name based virtual host SSH reverse proxy?

I've grown quite fond of HTTP reverse proxies in our development environment and found the DNS based virtual host reverse proxy quite useful. Having only one port (and the standard one) open on the ...
2
votes
1answer
128 views

Custom Apache SSHD server messages not displayed by Filezilla, WinSCP and Psftp.exe

I am setting up a custom SSH server using Apache SSHD which interacts with web services, and depending on the web service response the file will be stored or discarded. Following is my use case: All ...
1
vote
0answers
48 views

ssh: transparent redirect of incoming connections based on host- or username [duplicate]

I have a Linux server with a single, static IPv4 address and several DNS entries pointing to the IP. The server hosts several Docker container, and listens on port 22 for incoming SSH connections. ...
52
votes
2answers
23k views

ssh hostname returns “Bad owner or permissions on ~/.ssh/config”

When I try to ssh to another box, I get this strange error $ ssh hostname Bad owner or permissions on ~/.ssh/config But I made sure that I own and have rw permissions on the file: ls -la ~/.ssh/ ...
3
votes
3answers
36k views

SSH: Permission denied (publickey,gssapi-with-mic,password)

==================================================================== UPDATE: It turned out the configuration of sshd on host2 wont allow password login. Thanks to people answered this. Also don't ...
2
votes
2answers
283 views

Proxy SSH to hide endpoints [duplicate]

Has anyone done SSH proxying that is transparent to the user, but the end host they are routed to is determined by any of the following: username, identity key, DNS hostname. I guess DNS hostname ...
1
vote
1answer
19 views

Locked out from SSH, NetBoot can be useful? [on hold]

I am operating on a Server that is on a datacenter. For security reasons I've disabled root access. So yesterday I was configuring a restricted access group on the server and accidentally put the only ...
2
votes
1answer
612 views

How to configure Centos 5.3 using OpenLDAP to store and serve SSH public keys?

I want to be able to manage all my users logins via OpenLDAP. I am using Centos 5.3, OpenSSH 4.3p2-42 and OpenLDAP 2.3.43. I have installed GOsa2. Is there a GOsa plugin to manage the SSH keys in ...
0
votes
2answers
1k views

Unable to change ownership of authorized_keys - Operation not permitted

I am following these steps in setting up a public/private key set on my server: Modify the permissions on the public key by entering the following commands, one by one, on your Linode. Replace ...
1
vote
0answers
41 views

How to kill all process on ssh logout? (Kill running Background proccess started with screen etc)

Hi i have a multiuser centos server running. There are for example 3 users (non root) - each of them have their own homedir. SSH Login is allowed (bash). How could it be reached, if a user started ...
4
votes
1answer
1k 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 ...
1
vote
0answers
24 views

SSH Client sporadically hangs for few seconds

On Ubuntu 14.04 LTS when I use SSH client, it hangs sporadically for few seconds every minute or so. no input is lost is just delayed. SSH -V OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan ...
0
votes
1answer
2k views

Unable to ssh EC2 using password - “Disconnected: No supported authentication methods available (server sent: publickey)”

I have followed the following steps https://coderwall.com/p/j5nk9w This is what I did 1) $ sudo useradd -s /bin/bash -m -d /home/newuser -g root newuser Entered the Password for the newuser 2)$ ...
0
votes
0answers
13 views

sshfs fails sporadically in ec2

I am running multiple (2-5) Jenkins build slaves in AWS EC2. The master and slaves run Ubuntu 14.04. The slaves scale up and down dynamically. They compile Java/Scala projects build using SBT. To ...
1
vote
1answer
25 views

Windows Server Port forwarding SSH to Telnet for multiple users

I have multiple installations with a specialized database framework (Intersystems Caché) that contains its own Telnet server running on port 23. Although the product does run on Windows Server 2008, ...
2
votes
2answers
435 views

OpenSSH: Difference between internal-sftp and sftp-server

Why are there two ways to setup sftp with openssh and when to use which? Is there any difference between it? I mean the first one is using a lib from openssh and the second one says "use the ...
0
votes
0answers
26 views

How to set up a secure Git repository?

I followed this tutorial and set up a git repository on an AWS instance. https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server However, I've noticed that I can clone it using git ...
0
votes
1answer
21 views

Gateway Server Jump Bastion Host Local Setup [closed]

I want to ssh to an remote private host using an intermediate (bastion, jump, gateway) server. This command works fine: ssh -t remote-user@remote ssh internal How can I implement this in my ...
2
votes
1answer
6k views

How do you configure X11 forwarding over SSH on AIX?

Here is what I've tried. I've edited /etc/ssh/sshd_config on the remote AIX system X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes as well as set $DISPLAY DISPLAY=localhost:10.0 export ...
0
votes
0answers
31 views

Can't login to root via SSH [on hold]

I had access to my client's site via remote SSH and Control Panel. In the past I was able to log in with ssh root@vps.site.com But after logging out from that session I lost access to that server. ...
0
votes
4answers
96 views

Not able to SSH to Ubuntu after reboot

Today we decided that the best course of action for our Ubuntu Server (VPS) would be to restore a back-up after too many settings had be changed to our Geoserver instance. However, after restoring the ...
1
vote
1answer
1k views

rsync from Drobo to Drobo

I'd like to run a backup rsync job from one Drobo to another. I've managed to get rsync and the ssh tools installed so that I can ssh from my desktop into backup@drobo1.local and then ssh into ...
0
votes
2answers
85 views

Add multiple SSH keys to a new server

I know I can do the following to copy an SSH key ssh-copy-id user@server.com but when I deploy a new server, I need to authorize multiple SSH keys to it. Is there anyway to make life easier for ...
1
vote
0answers
45 views

SSH Passwords are working using IP address, but not when using the server name

We recently rebuilt one of our servers using Ubuntu 12.04 LTS and experienced something we haven't seen before. When we attempt to ssh into the box, we are able to ssh into the box if we use the ip ...
3
votes
1answer
888 views

Git clone from Windows to Windows cannot find the repository

git clone gituser@<server>:myRepo.git doesn't work, fails with the error message: fatal: ''myRepo.git'' does not appear to be a git repository Background: We have a Windows 7 machine set up ...
0
votes
1answer
69 views

Why is FileZilla SFTP file transfer max capped at 1.3MiB/sec instead of saturating available bandwidth? rsync and WinSCP are even slower

I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download ...
0
votes
1answer
99 views

Cannot access SSH & neither any other service

I have installed a Red Hat 6 server as a virtual machine in a windows 2012 enterprise edition Hyper-V. The installation is over and I configured the static IP address using GUI tool provided in the ...
0
votes
0answers
20 views

server not respond to browser but ok with ssh or ping

Server has been up and running for 20 days. but since 10:00am this morning its cannot be queried via browser. SSH and ping both ok. In browser I also tried to type IP address directly instead of ...
0
votes
0answers
40 views

How to change the ssh auth method in vagrant, from password to private key?

I run vagrant(1.7.2) on Mac OS(10.10.3) with Snappy Ubuntu Core(15.04 stable), for docker, using VirtualBox 4.3.28 as a provider. I can manually ssh in the Ubuntu guest OS by a private key method in ...
0
votes
0answers
11 views

ssh hanging, but *not* ServerAliveInterval

This is a new problem, but I have no idea what has brought it on. I have two local clients (Windows/Cygwin and Linux/SL6.6, on the same IP address behind NAT), both making ssh connections to the same ...
1
vote
1answer
978 views

Windows CA to issue certificate to authenticate SSH to a Linux server

I have a Windows Server Root Certificate Authority, Linux SSH server, and users with Windows SSH clients. The Linux box is not part of the AD domain (and probably never will be [sigh]) OpenSSH 5.4 ...
0
votes
0answers
15 views

How to change the ssh host in Vagrantfile [migrated]

I run vagrant(1.7.2) on Mac OS(10.10.3) with Snappy Ubuntu Core(15.04 stable), for docker, using VirtualBox 4.3.28 as a provider. It all went well before I configured the "public_network" in ...
0
votes
0answers
15 views

CentOS VPS is possibly rooted, but no tools show anything [duplicate]

I've received a notification from my VPS provider (Afterburst) that my VPS is trying to scan and bruteforce other people's servers. I know that I'm not doing this, and I know that nobody else with ...
3
votes
1answer
82 views

ssh as user runs program with no authentication (neither password nor keys)

I'd like to set up a user on my system (Ubuntu 14.04 x64) such that people can run ssh example@myhost.example.com and see some output from a program without being prompted for a password or having to ...
-1
votes
0answers
10 views

Set SFTP Max Number of Simultaneous Connections (Linux/Ubuntu)

SFTP has serious file transfer speed limitations that can be partially overcome by increasing the number of simultaneous connections. By default, SSH should support 10 MaxSessions and 10 MaxStartups ...
7
votes
1answer
74 views

Are there any security benefits to deploying custom SSH DH groups to client-only systems?

One suggested mitigative strategy against Logjam-related attacks on SSH is to generate custom SSH Diffie-Hellman groups using something like (the below being for OpenSSH) ssh-keygen -G ...
0
votes
1answer
36 views

Couldn't setup password-less ssh between google compute centos machines

I am trying to setup password-less ssh between google compute centos 6 instances. I copied the public of server-1 on to '.ssh/authorized_keys' of serer-2. I made sure all the permissions of .ssh ...
0
votes
2answers
1k views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- ...