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)

-1
votes
1answer
20 views

Fastest way to copy small files over secure network without regard for file mod times or size

I want to sync files in dir1 and dir2 (two different servers). I do not care if the file sizes or modification times differ. EXAMPLE: dir1 contains file1, file2, file3, file4, and dir2 contains ...
0
votes
1answer
2k 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 ...
33
votes
4answers
44k views

How to change sshd port on Mac OS X?

I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32. Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer ...
0
votes
1answer
4k 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 ...
187
votes
18answers
230k views

How do I tell Git for Windows where to find my private RSA key?

My GIT setup runs fine in Linux, but when I try to set things up under Windows (using Git for Windows and TortoiseGit), I don't know where to put my private ssh key (or, better still, how to tell ssh ...
0
votes
1answer
1k views

Improper output in SSH session on OSX using FreeSSHd on Windows with cygwin bash/sh shell

I am testing out running an SSH server on a local Windows VM. I have installed FreeSSHd and set the command shell to "c:\cygwin\bin\sh --login -i" (bash as well) with "Use new console engine" ...
0
votes
1answer
19 views

SSH connection lost after random time interval, both sides claim the other closed the connection

I'm connecting to a virtual solaris machine from the windows host system running virtual box. This works for a while but after some time the connection vanishes. The stange thing is that sshd claims ...
0
votes
1answer
21 views

SSH access on public IP pool

I am creating VPS solution and currently network policy for Virtual Machines provisioning provides each VM with one public IPv4 address from the reserved pool of 255 addresses. I will need to provide ...
2
votes
2answers
817 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 ...
28
votes
8answers
16k views

Allow SCP but not actual login using SSH

Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
2
votes
1answer
841 views

Putty: Incoming Packet was garbled on decryption

I am unable to connect to my server on my local network (VM). I have multiple servers I am able to connect to. When I try to putty into the server, I get the message Incoming Packet was garbled on ...
1
vote
4answers
2k views

Running ssh-agent from a shell script

I'm trying to create a shell script that, among other things, starts up ssh-agent and adds a private key to the agent. Example: #!/bin/bash # ... ssh-agent $SHELL ssh-add /path/to/key # ... The ...
1
vote
1answer
486 views

Use PowerShell to edit a remote file on a Windows 2008 Server

Editing a file on a remote linux server via SSH and vim is something I usually do on a regular basis. Recently, I got on a new web project involving Microsoft technologies instead of the usual open ...
6
votes
5answers
4k views

Forward local port or socket file to remote socket file

Quick question - I run two linux boxes, one my own desktop and the other my VPS. For security reasons on the VPS end I opted for socket connections to MySQL (/var/run/mysqld/mysql.sock). I know I can ...
0
votes
1answer
23 views

Forgot user password and disabled root ssh signin Ubuntu 14.04 server

First I need to say that I'm not pro Linux admin but web master trying to configure server. Though I am learning. I disabled root ssh login in sake of security and then I forgot to save user account ...
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
16 views

Google Cloud: Connection Refused upon reset/shutdown

I recently signed up with Google Cloud to host a small VM instance. I created a basic instance with Ubuntu Server 14.04 LTS as its OS, installed apache2, MySQL and Wordpress to it and worked on a ...
0
votes
0answers
24 views

Logging into an AWS EC2 instance from another machine in EC2

I have a few AWS EC2 instances that can SSH into each other. They are not in a VPC as this is an older AWS account and was active before VPC. One particular EC2 instance (zeta) is not able to SSH into ...
1
vote
1answer
832 views

Bootstrapping servers with chef, and changing the SSH Port

I have a full set of recipes that are working to bootstrap a server at Rackspace, it configures and installs everything as needed. Now, I want to change the default port SSH runs on. This is fairly ...
1
vote
2answers
47 views

Locally deny login to users authenticated via LDAP

I have a RedHat Linux server that are is use for more than 1000 users Users names are coming to the server via LDAP protocol, so login authentication is from the LDAP My question: is it possible to ...
0
votes
0answers
23 views

winsshd restrict windows admin from managing the server

I'm installing winsshd server on client computers, and i want to give them an administrator account. but i also want to make sure they don't mess with the winsshd server configuration, which can be ...
13
votes
3answers
2k views

Is there a safe way to store passwords used for ssh by a script?

So first, I know, I should use key auth with SSH. No need to explain me that. Issue here is that I have a (big) bunch of servers, and I need to have a script be able to connect each of these. I use ...
0
votes
0answers
18 views

Forcing a password change on OpenBSD

On OpenBSD 5.6 I need to provision a number of user accounts with default passwords. I would like users, upon their first SSH login, to be forced to change their passwords from the default. On CentOS ...
0
votes
0answers
429 views

(reverse-) ssh connection “time out during banner exchange”

I have set up a few 100 embedded boxes to contact HQ by opening up reverse ssh tunnels, each under a new port. This is mostly working fine, but today I encountered a problem with using the tunnel ...
1
vote
0answers
18 views

How to know if a bastion or vpn is the right solution? [on hold]

How do you choose between using a bastion or VPN when providing access to a vlan? I have seen many different setups, but don't have a good idea on how to make a less subjective selection. Is there a ...
0
votes
1answer
19 views

running a remote command with ssh seems to hang all other network activity

I'm running the following command to backup a mysql database from a remote machine: ssh root@example.com 'mysqldump mainserver' | gzip -c > mainserver.sql.gz I've timed the command and it seems ...
0
votes
0answers
15 views

force ssh and web server though certain interface [on hold]

I'm running Ubuntu Server, I currently have a VPN to tunnel all my traffic thought it setup. It works great no issues but this one. I can connect ssh,web server,etc on local lan but when I port ...
0
votes
1answer
1k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy ...
3
votes
2answers
3k views

How to stop/prevent SSH bruteforce

I'm very new to network administration, so please regard that I'm not that experienced yet. I have a Ubuntu root server with plesk panel. Yesterday my friends and I noticed that the quality of ...
0
votes
1answer
28 views

Adding new user to AWS EC2 - Permission denied (publickey)

I am trying to set up a new user for my AWS EC2. I have followed step by step this tutorial but I get Permission denied (publickey) error. I tried as well creating a newuser-key-pair.pem from AWS EC2 ...
0
votes
1answer
47 views

Executing command remotely on another linux server from a shell script

I have a shell-script which extract details from a log file between two dates and executes a command on the output to generate some report.The log files are on different server and scripts are ...
0
votes
1answer
23 views

Is it normal for the identity of a host to change after enabling SSL?

I logged in to a known host - ssh username@example.com. I did a2enmod ssl and I generated a CSR to enable SSL on one of the virtual hosts on the server. From a separate terminal tab, I tried to do an ...
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 ...
2
votes
1answer
4k 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 ...
2
votes
1answer
1k views

gitolite mac don't add new user to authorized_keys

I installed gitolite and every thing works fine for me as admin. But when I'd like to add add a new user the new user can't connect to the server. After I looked into the file authorized_keys I saw ...
1
vote
1answer
832 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

Can OS X Server Wiki show Active Directory Files?

I have active directory (2008R2) and an OS X Server (Yosemite) setup. OSX Server recognises the Active Directory and when I SSH into it with an AD account I am able to see my home folder. Now my aim ...
-1
votes
1answer
43 views

SSH connection refused after installing webmin [on hold]

I'm running Debian Wheezy on Amazon EC2, from their offical image: http://deb.li/awsmp I've got my SSH key and everything has run perfectly until I installed webmin via the deb-packages: ...
0
votes
1answer
1k 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
1answer
28 views

The authenticity of the server when accessing it through a domain name instead of an IP

When I do ssh username@123.123.123.12, I log into the server fine. However, if I do ssh username@example.com, where example.com points to the same IP addrees, I get: The authenticity of host ...
0
votes
0answers
31 views

Forgot password in remote ubuntu

I have a remote server with Ubuntu. I have ssh key for it and can login to this machine from my computer without password. Now I like to sudo, but I forgot my password for it. How can I get or ...
0
votes
1answer
35 views

Connecting to a pool member over SSH w/ a host certificate good for the pool name only

I'm using OpenSSH certificates for a pool of hosts. That is to say, in ~/.ssh/known_hosts, there's an entry that looks thus: @cert-authority service.redacted.com ssh-rsa ... ...and ...
0
votes
0answers
15 views

Can I use keys from both an ssh-agent running on an SSH remote and also from a forwarded agent? [on hold]

I have an ssh-agent holding key A, running on my local machine. I connect with SSH to a remote machine, with agent forwarding on. That remote machine has an ssh-agent running that is holding key B. ...
-2
votes
1answer
47 views

SSH connection manager on Mac OSX (An alternative to PuTTY/MTPuTTY?) [on hold]

On a Windows PC, I always found it helpful to store SSH connection details in a tool like PuTTY (and in extension MTPuTTY). It offers: - a clean overview of which hosts I connect to - terminal ...
1
vote
0answers
10 views

Sync failure between Gerrit & Github for Windows client

I've set up a POC Gerrit server, and am able to push to it via the Git Command Line. I'm trying to set it up so that less experienced colleagues can use the Github for Windows client to sync commits ...
3
votes
4answers
5k views

SSH access problem: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server XXX ON Amazon EC2. SSH is running on a standard (22) port. I placed my pubkey at the /.ssh/authorized_keys file The fun thing is that YESTERDAY it was working great! But today, I ...
2
votes
0answers
54 views

How to change the sshd listen address on Mac OS X?

This question is similar to the question here, about changing the sshd port on Mac OSX, but instead of changing the port number, I want to change the listen address of my Mac's ssh server. Setting it ...
2
votes
0answers
24 views

Using Windows NPS for Cisco router aaa authentication - is this safe?

I setup RADIUS authentication on a Cisco router and pointed it to a Windows NPS. Now I can ssh into the router my with AD account YAY. But now that I got it working I'm going over the settings to ...
1
vote
3answers
850 views

I can run a script locally, but cannot do “ssh HOSTNAME /path/to/script.sh”

I have a linux server, and a linux desktop. I have written the following simple script to dump the database of a django web application: #! /bin/bash set -o errexit cd $(dirname $0) . ...
0
votes
2answers
982 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 -- ...