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
vote
1answer
619 views

ssh remote command error codes

How can i differentitate if the return code ($?) came from the ssh command itssef or from the command to be executed remotely when using the following syntax: ssh user@host "some remote command"
4
votes
3answers
5k views

What does “sshd: error: connect_to … failed” in auth.log mean?

I've noticed several repeats of the following error message in /var/log/auth.log on a server: Aug 10 09:10:16 hostname sshd[661]: error: connect_to 1.1.1.1 port 25: failed. I've changed the actual ...
5
votes
3answers
1k views

using local LS_COLORS on remote server via ssh without modifying remote server

I have access to loads of different ssh accounts, several hundred I'd imagine, that I use on different occasions. Some of them are personal, some of them I've gotten from clients and are shared, and ...
3
votes
2answers
323 views

Resetting root password on Fedora Core 3 - serial cable access only

A little background: We have an old rackmount server running a customised version of Fedora, manufactured by a company called Navaho. The server is a TeamCAT, running some proprietary rubbish called ...
-1
votes
1answer
3k views

Permission denied when starting Unicorn on Ubuntu

I'm not familiar with Ubuntu and some problem with server settings for my Rails app. I've created deployer user in admin group (%admin ALL=(ALL) ALL). It was all ok, but when I'm trying to start ...
1
vote
1answer
4k views

ssh localhost exits with “debug1: Exit status -1 ”

I am trying to setup ssh and ssh to localhost on Cygwin, but I am getting the following error. Any suggestions will be appreciated: $ ssh -v localhost OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 ...
2
votes
1answer
1k views

Fix “too many authentication failures”

I have a user account on a machine where they attempted to log in with the incorrect password via SSH until it triggered "too many authentication failures for X" -- I have access ot the box as the ...
0
votes
1answer
432 views

sshd_config versus authorized_keys command parameter

Background: I added OTP token authentication to my web server. I modified the /etc/ssh/sshd_config file with the ForceCommand /token/script command. Problem: I have a local Jenkins instance ...
0
votes
2answers
480 views

Duplicity - how to put passphrase in CMD?

I've tried a number of obvious commands as detailed in Duplicity Man page to do this but doesn't seem to work. Scenario I'm SSH'ing to a machine, then running Duplicity; below is the CMD, of sorts:- ...
0
votes
1answer
49 views

SSH to last current location

Is there a way to make the default ssh location be the folder that was current when last logged out? I'm using bash and Ubuntu, so it looks like I could use the .bash_logout file to set a variable, ...
3
votes
1answer
578 views

Problems with C^b C^[arrow key] in tmux through a ssh session from a mintty terminal

I have a server that I ssh to from Windows 7 using Cygwin+mintty. On the server I attach to a tmux session. So far so good, but when I try to change the tmux layout using C^b [arrow] and C^b M^[arrow] ...
0
votes
2answers
158 views

Disabling password login for certain users for SSH

I added this to the bottom of the sshd_config file Match User user PasswordAuthentication no Then I restarted SSH, and when I went to go SSH into my server I got the error Permission denied ...
5
votes
2answers
2k views

Access D-Bus remotely using socat

Description: I'd like to access a D-Bus system service from another machine, knowing only machine's IP address and the service to connect to. What I have recently found is Gabriel (D-Bus over SSH). ...
1
vote
1answer
43 views

Displaying the ssh hops

I have three machines A,B,C. If I ssh into B from A, then into C from B, how can I find the path A->B->C ? I'd like to display this information in the prompt in order to know where I'm going to land ...
0
votes
2answers
3k views

how to change password of AWS EC2 instance

I am logging in my AWS EC2 instance using winscp/putty as root using a .ppk file which has imported-openssh-key. Earlier it was shared with many ppl, who are all gone, so now I have to change it in ...
0
votes
1answer
111 views

Linux sshd suddenly began prompting for “Windows Authentication” from Cygwin ssh

I returned from vacation to find a "helpful" intern had installed some Mandriva 2011.0 updates on a linux server, and he had updated Cygwin to 1.7.16 on a Windows XP machine. Prior to the updates, I ...
-2
votes
6answers
396 views

How to reject HTTP access to SSH port

I changed my server SSH port to something else than port 22, however when I access to domain.com:<ssh-port> I can see an output of SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1 I want to block ...
0
votes
1answer
545 views

Can't connect to SSH after installing xfce

I've got a server (VDS) on Debian. I have recently installed xfce (apt-get install xfce4) through SSH, and after doing that I can't login via SSH anymore. Here is my ssh client output: ...
1
vote
2answers
172 views

How to create a new user and exempt the user of key authentication?

1 I have configured Ubuntu server with Key authentication & it is working fine. I have disabled password authentication for key authentication to work. Server is always accessed via remote ...
0
votes
1answer
80 views

Securing a TCP stream

We have devices at client sites that connect to processes on our servers and provide several streams of TCP data. We currently use VPNs to gain security and be able to connect back to the devices, ...
2
votes
4answers
6k views

SSH between two Virtualbox guests

On my laptop I'm running two Ubuntu servers as guests on virtualbox. They are connected via a host-only adapter that has an IP address of '192.168.56.1', with the two guest severs having IP addresses ...
14
votes
2answers
5k views

How to get all fingerprints for .ssh/authorized_keys(2) file

Is there a simple way to get a list of all fingerprints entered in the .ssh/authorized_keys || .ssh/authorized_keys2 file? ssh-keygen -l -f .ssh/authorized_keys will only return fingerprint of ...
0
votes
2answers
672 views

start dummy X server for user logged remotely

I have a server (CentOS6) which has an ATI GPU. For users to have access to this GPU for computation with OpenCL, they need to have an X session open unfortunately (a restriction on the ATI driver). ...
0
votes
1answer
743 views

SSH tunneling for MySQL with multiple hops, without having user accounts on the MySQL end?

I'd like to create several ssh tunnels to MySQL servers that are several hops away. I have ssh access to every server except the MySQL ones. Here's how my setup looks like: ...
2
votes
1answer
1k views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
1
vote
4answers
4k views

Linux SCP File transfer No space left on device?

I am trying to transfer one zip file from a linux based machine to a Windows based using SCP. I can go through the transfer ok but when it completes it says "No space left on device". The ...
1
vote
2answers
978 views

Route ssh traffic based on hostname using FreeBSD/pf?

I have a proxy/firewall machine running FreeBSD 9, using PF to route and filter traffic as needed. Now I'm setting up a git server, which runs over ssh, but I'm already using port 22 for ssh. I would ...
-1
votes
2answers
85 views

What has happened to my ssh connection?

This is probably the most stupid question ever but what has happened to my ssh connection? It is suddenly in color, has that bar across the bottom and looks completely different. Is it caused by a ...
3
votes
3answers
2k views

SSHing with the nobody user

I am on FreeBSD. Essentially, I am trying to have a php script (run by apache) ssh into another machine. I am running into the problem that nobody does not have a .ssh configuration file and so am ...
-1
votes
1answer
151 views

Error : ssh_exchange_identification: Connection closed by remote host?

I am getting the following error while running ssh in linux ssh root@localhost -p 4440 -vvv OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config ...
0
votes
1answer
137 views

How to remotely install SSH on Linux?

It seems that my VPS doesn't have SSH installed(I'm not sure yet), because I get no response from the server, and I cant ping it. So I think this is weird, because I cant control my VPS by anyway. ...
1
vote
2answers
3k views

linux ssh server - fail2ban will not ban ip addresses

i've got a Problem with fail2ban on my v-Server. I installed everything as explained in a tutorial, but fail2ban don't block ip adresses. /etc/init.d/fail2ban status says: * Status of authentication ...
2
votes
1answer
177 views

SSH jumpbox with group Authorisation

I'm trying to setup a SSH Jumpbox. Users logged on the Jumpbox needs to be able to authorize to another SSH servers depending on their group. (UserA is on group Project1, UserB is on group Project2, ...
2
votes
2answers
830 views

Is it safe to only allow SSH access from certain IPs?

I'm currently installing CSF (http://www.configserver.com/) for my Ubuntu server and in CSf you're able to specify the ports you want everyone to be able to access, and if your IP is in the allowed ...
4
votes
5answers
11k views

Running python app in the background on linux

Weird question here, but I'm playing with a python chat server/client combo on my Linux server. Currently, if I do this: $: cd /path/to/chat/server $: sudo python ChatServer_Listen.py This starts ...
1
vote
3answers
320 views

SSH autologin works sporadically

I am installing 20 servers. On each, with a specific user I created a dsa key. I did cat key.pub from each server onto ~/.ssh/authorized_keys of the first server I verified all servers can log in ...
0
votes
1answer
354 views

Cannot connect to SSH intermittently , sshd is running, and other services are online and operating without disruption

So when doing this: ssh -l root myKVMinstance.domain.com i get this: ssh: connect to host myKVMinstance.domain.com port 22: Operation timed out at the same time while that is happening, i am ...
1
vote
1answer
1k views

Passwordless ssh with NFS+NIS

I'm playing around with a cluster (with torque+open-mpi). I have a master node and compute nodes. Master submit jobs to computes nodes. To do it I use NIS+NFS in order to unify UID's and home ...
1
vote
2answers
804 views

TortoiseGit using private key (non-root user)

I have a debian server with some git repositories. I've generated two keys using keygen -t rsa That gave me root.pub and user.pub files. The root.pub was appended to /root/.ssh/authorized_keys and ...
30
votes
7answers
6k views

SSH: Two Factor Authentication

I currently have a Ubuntu Server 12.04 running OpenSSH along with Samba and a few other services. At the current time I have public key authentication set up, and I'm wondering if it's possible to set ...
3
votes
3answers
5k views

pass a password to sudo su

I wanted to sudo to different user after ssh'ing into remote server, for this i tried the following: cat remote-test.sh ssh -t -t abcuser@test-server.net 'bash -s' << EOF /tmp/test.sh EOF ...
6
votes
2answers
5k views

Add server to known_hosts

I would like to add github.com to the known_hosts file from the command line as I am creating a puppet manifest to provision a remote server. I have tried: "ssh-keyscan -H github.com > ...
-3
votes
2answers
619 views

I have a mongod process but i did not install mongodb, what could this be? [closed]

when I do a top I could see mongod in the top consumers: But I do not have mongodb installed: How do I remove mongod? I know I could easily do a kill 571 but it's not neat. Could this be a virus ...
0
votes
1answer
188 views

Escaping characters when calling ssh from windows

I need to call an ssh command from a Windows command prompt that will execute a command on a remote Linux machine. The command accepts two string parameters, one of which can potentially be ...
4
votes
1answer
199 views

ssh hangs if the command is larger than 1374 bytes

I'm having trouble executing long commands with ssh. The following works fine: echo 'cd /home/www; echo ...
7
votes
3answers
3k views

OpenSSH disable ControlMaster for given hostname

I am using OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 with Mac OS X Snow Leopard. I have ControlMaster feature configured to maintain persistent connections. My ~/.ssh/config have the following: Host * ...
5
votes
1answer
5k views

How can the Address condition in a Match conditional block in sshd_config be negated?

I would like to force users into a specific command when they log in from outside my LAN via SSH to my LAN. My idea was, to use ForceCommand in a Match conditional block, that matches all addresses ...
2
votes
4answers
2k views

GUI based remote sessions for end users

I am setting up a ubuntu 12.04 LTS server that several non-technical users will need remote access on to run GIS (Geographic Information Systems) software, and other software. I need users to be able ...
0
votes
1answer
120 views

Disable SSHd UseDNS for particular client

I have two machines, both with permanent IP addresses. One machine (the Client) needs to frequently access the other (the Server) using SSH. This works fine, however the server is configured with ...
8
votes
4answers
2k views

Can anyone monitor my ssh (scp) file transfers

I am working on distributed architecture where we have automated data distributions using bit-torrent. But sometimes we need instant access to some data stored on remote server. So I wanted to know ...