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)

3
votes
1answer
5k views

Use iptables to forward ssh

i found several tutorials on how to do it, but got none of them to work :/ My setup: FIREWALL - reachable from the internet - eth0: xxx.xxx.xxx.xxx (public ip) - eth1: 192.168.1.1 SERVER - ...
2
votes
3answers
1k views

Need scp with www-data without the need for password

I have a DMZ with a web server running Ubuntu 11.04 and an application server running Ubuntu 11.10. I have set things up so that I can scp from the web server to the application server by running ...
3
votes
3answers
3k views

using rsync through secure ssh in a cron job

I am trying to set up a shell script under Debian GNU/Linux to backup a directory and subdirectories to a remote NAS running Linux over SSH. This connection has to be encrypted. I have tried a couple ...
0
votes
1answer
16k views

“Protocol mismatch” when trying to access tunneled HTTP port

I'm using Mac 10.7.4 and I have an HTTP service running on port 8082 of a remote server, which I can only access through an intermediate server. So I execute these tunnel commands ssh -L ...
0
votes
1answer
246 views

How do I secure my SSH access?

I'm one of those guys who climbs up the ladder to the high dive and jumps off, then realizes he doesn't know how to swim. So I have a VPS, and I have no idea how to administer it. I understand one of ...
1
vote
4answers
302 views

Reimport ssh certificate after every reboot for GIT PUSH over ssh to work

I am using OSX 10.8 on my macbook air, i have git configured to push my repository to an EC2 instance via ssh. Everything works fine with that. The only issue is that after every reboot, I have to ...
12
votes
2answers
14k views

Auto-storing server host key in cache with plink

i've been trying to issue commands using plink to retrieve information from my external server. note that these plink commands are ran from a binary that expects no input from the user. is there a ...
1
vote
1answer
2k views

Non-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failed

Below you can see the log. The connection is from a Cygwin SSH client to a Cygwin SSHD server. The connection works ok when launched from the command line but fails when launched from Jenkins (Java ...
11
votes
4answers
9k views

OpenSSH anything like 'internal-sftp' but for SCP?

I'm running Debian stable and I'm looking to establish the following environment for users in my 'sftponly' group: jailed can transfer with SFTP can transfer with SCP cannot login interactively with ...
0
votes
1answer
136 views

Ubuntu login message not shown for non-root users

I really liked the welcome motd message that gets displayed when I logged in as root into my vps ubuntu 10.04 server. It displays statistics like uptime and systemload and packages to update. ...
10
votes
2answers
2k views

How do I use rsync with an IPv6 address via SSH?

I've been having difficulty with connecting to my IPv6 address via rsync. Because the argument for the destination folder is colon-separated, the IPv6 address disrupts this like so: ...
2
votes
2answers
698 views

Postgres: Replicating over ssh at specific time frames

Can someone help me with the most common stable replication mechanism for postgres that I can run at specific times of a day(know it sounds weird) postgres that can run over ssh? Over ssh is ...
-5
votes
1answer
409 views

issue when ssh-ing to EC2 instance [closed]

I am getting the following error: sudo ssh -i -v ~/.ssh/shopious.pem ubuntu@54.245.124.178 dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid ...
2
votes
1answer
1k views

ssh forcecommand connection to xxx closed

i am setting up an ssh notification system for my servers. the aim to for sshd to send me an email every time i log in to one of my servers with the hope of catching intruders. i'm using ubuntu 10.04 ...
2
votes
1answer
518 views

Openbsd init script for ssh VPN tunnel

I have a server hosting SSH tunnels and Openbsd 4.5 clients connecting to it. Things work just fine but I am in the need of automating the connection from the client to the server. So that if the ...
1
vote
1answer
209 views

Fix SSH (client and server) on Mac OS X Mountain Lion

I have upgraded my Mac to Mountain Lion. Now that its complete I cannot SSH into any server for more than a few seconds, and I cannot receive any SSH connections. I can only assume something from the ...
0
votes
2answers
3k views

Restricting User Access in Debian Squeeze

I've been contemplating ways to restrict user access to their own directories, not allowing them to navigate above their own user directory. I'm using SFTP, and don't want to install regular FTP ...
1
vote
3answers
810 views

Configuring ssh not to prompt for password

I have git successfully installed on one of our Red Hat Linux 5 WS servers, and am using it on our Intranet, not outside our firewall. Currently, I am prompted for a password when I connect, so what ...
5
votes
1answer
3k views

sftp/ssh failing after adding “Match group” clause

I am attempting to set up an sftp server on ubuntu/precise on EC2. I have been successful in adding a new user that can connect via ssh, however once I add the following clause: Match Group sftp ...
1
vote
1answer
358 views

No SSH password prompt

I'm trying to reach Centos based VPS in OpenVZ. User prompt goes well, but after I type username, press Enter no password prompt occurs and server drops connection by timeout in a few seconds. ...
0
votes
1answer
3k views

SSH Public Key Authentication not working with PuTTY

I have created a virtual machine and installed Redhat 6. I am having issues connecting using public key authentication. I can use PuTTY on my Windows host to connect to the redhat guest, where I am ...
2
votes
1answer
148 views

Manage remote linux machines

My start up is building a computer which runs debian linux and some custom programs. What is the best way to remotely access the machines without the user having to do anything? Our product is ...
-2
votes
1answer
139 views

What is the use of openvpn?

I have an ec2 instance running. I connect it via ssh. It looks good for me. Now my team lead asks me to set up an OpenVpn. I wonder why should I do this. With the ssh command, I can connect to my ...
9
votes
2answers
18k views

SFTP fatal bad ownership or modes for chroot directory ubuntu 12.04

I just set up my SFTP server and it works fine when I use it from my first user account. I wanted to add a user which we will call 'magnarp'. At first I did like this in sshd_config: Subsystem sftp ...
2
votes
1answer
214 views

Copying SSH Key-Pair Generated by Putty to MacOS

i have a target BSD machine where i connect to from my windows box, i copied the public and private key pairs that are generated by putty and i'm trying to use them on a different laptop with Mac OS. ...
7
votes
2answers
4k views

SSH from PuTTy to Debian “authorized_keys is not a regular file” Error

I cannot connect from my Windows 7 computer using PuTTy to a newly configured Debian Squeeze server using SSH RSA key authentication. I get this error when running SSH in debug mode: User myuser ...
2
votes
2answers
292 views

Merge local SSH keys to work simultaneously

I have been using SSH alot. I find myself creating new keys when something fails, like for git, then I lose communication to my other servers. I know going forward there should only be one set of ...
7
votes
1answer
4k views

Purpose Behind Disabling PAM in SSH

I'm setting up key based authentication for SSH on a new box, and was reading a few articles that mention setting UsePAM to no along with PasswordAuthentication. My question is, what is the purpose ...
0
votes
1answer
57 views

What would be the outcome of tar and untar a constantly changing folder via ssh

I have used this command on a big-sized (TB),constant changing directory with sub-folders and files. $ tar c dir/* |gzip - | ssh user@host 'cd /dir/ && tar xz' What would be the outcome at ...
0
votes
2answers
83 views

Remote host making strange request. Am I safe?

I am starting work for an organization on their server. They need to allow connections from my server in order to use GIT over SSH. They asked me to place this in my SSH directory: SHORTNAME=abcdef ...
0
votes
2answers
394 views

Google 2 factor authentication on Ec2?

I have set up google two factor authentication on my local machine. So when I do : ssh localhost I need to verify the code along with password. But when I try to connect to my Ec2 instance like so ...
0
votes
1answer
1k views

audit_log_user_command(): Connection refused when using sudo, what's wrong?

i ssh to my remote centos sever as hugemeow, then i run sudo ls, then error happens: [hugemeow@home ~]$ sudo ls **audit_log_user_command(): Connection refused** httpd hugemeow is in /etc/sudoers, ...
1
vote
2answers
890 views

Tunnel an SSH connection transparently (no ProxyCommand)

Here's the scenario: the user runs "ssh -i sshkey user@server1". I want the SSH connection to be tunneled through server1 to server2. Normally, the user could do this himself using: ssh -i sshkey ...
1
vote
2answers
716 views

Creating SSH key for remote host

I am beginning work with a remote host. They require a "SSH KEY" from my server. How can I create a SSH Key that they can use to allow connections from my server? I would like to assign the key to a ...
3
votes
7answers
4k views

keep ssh connection alive and persistant while switching network interface connections

Scenario: At my desk with laptop plugged in to ethernet and connected to remote server over SSH Want to move to other side of office with laptop and change to WiFi without interrupting SSH ...
1
vote
2answers
2k views

why i cannot start new ssh connections to remote server?

this question is not the same as others, who asked for that they cannot connect to server, the issue i have is that i cannot start more new ssh connections... now i am connected to remote server ...
2
votes
1answer
1k 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 ...
2
votes
1answer
678 views

SSH - sent password / access granted very slow

I wrote a question the other day regarding slow authentication. disabling GSSAPIauth did the trick. However, I am now faced with another issue. When reviewing the PuTTY event logs, i now have ~20 ...
1
vote
2answers
1k views

/bin/bash: Exec format error

I have a weird issue on an Ubuntu 10.04 LTS virtual server. A few days ago I started getting these alerts: ***** Nagios ***** Notification Type: PROBLEM Service: Current Load Host: localhost ...
4
votes
1answer
7k views

Enabled password auth on sshd, now keyboard-interactive auth hangs

OS X System 10.8 if that matters. I enabled password authentication for the built-in sshd, changing the setting for PasswordAuthentication thus: # To disable tunneled clear text passwords both ...
6
votes
2answers
6k views

Force SSH connection through a different interface

I want to connect remotely using SSH. However, I'm not able to while my VPN is active, so I disconnect from the VPN and then connect using the other connection. How can I force the connection ...
2
votes
1answer
557 views

SSH - slow authentication

This is more of a curiosity question then a problem at this point. I have resolved my problem which i'll post the solution that worked for me. problem I was getting rather slow authentication times ...
33
votes
5answers
4k views

Smoothest workflow to handle SSH host verification errors?

This is a simple issue that we all face and probably resolve manually without giving much thought. As servers change, are re-provisioned, or IP addresses reallocated, we receive the SSH host ...
3
votes
1answer
2k views

connection to the Bitvise SSH Server

I tested connection using localhost (as it written in documentation) and connection was successful (I got opened terminal and SFTP) I set port forwarding on the router. I am located inside ...
2
votes
1answer
990 views

x11vnc through SSH tunnel - sudo: no tty present and no askpass program specified

I'm trying to setup a one-time SSH tunnel which instantiates x11vnc on a logged-in display. ssh -f -t -L 5900:localhost:5900 user@10.1.10.1 'sudo /usr/bin/x11vnc -safer -once -nopw -display :0 -auth ...
0
votes
1answer
2k views

File/Directory permissions for SFTP user

After using the SSH quite a lot on my 1.5 week old Debian 6 VPS, I wanted to start uploading files through SFTP. I already tried that earlier, but with the root account, which isn't possible with SSH ...
2
votes
4answers
7k views

PAM module causes flurry of SSH sessions

While tailing /var/log/auth.log I noticed that there where multiple entries being entered (instantly) by the minute for user "foo". I personally had only one connection open as user "root_bar" while ...
0
votes
2answers
3k views

SSH login to Cisco switch using Rancid times out

I have a 3560 switch that I have configured to accept SSH logins, and this works fine. However I cannot get Rancid to complete the login process to any of my switches using SSH. I get a timeout error ...
1
vote
1answer
469 views

External SSH Connection Fails

I'm playing sysadmin for a day and standing up a new Ubuntu 12.04 box. The box has 2 NICs - 1 for internal connections, one for external. I'm able to ssh into the box using the internal ip (ssh ...
1
vote
1answer
634 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"