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

System-wide authorized_keys

SSH auth by RSA-key: ~/.ssh/authorized_keys. Okay. Is there a way to set a system-wide authorized key so I can login to any account, including the newly created ones? The reason: i've got a server ...
-1
votes
2answers
315 views

Attempting to install java without root, failing

I have downloaded and ran the self extracting jre bin file. The instillation folder in my subdirectory. Within that same subdirectory I type java - version but to no avail, I'm greeted with this ...
0
votes
2answers
4k views

sshpass does not work. Is there an alternative?

I use a small programm = sshpass to use ssh in a script to execute commands on linux routers Is there a alternative to sshpass because sshpass works at the moment not correctly (Bugs) - ...
2
votes
1answer
125 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 ...
10
votes
2answers
4k views

How does Kerberos work with SSH?

Suppose I have four computers, Laptop, Server1, Server2, Kerberos server: I log in using PuTTY or SSH from L to S1, giving my username / password From S1 I then SSH to S2. No password is needed as ...
10
votes
4answers
3k views

“Virtual hosts” for SSH

We have a remote Xen server running a lot of guest machines (on Linux), with only a couple of IPs available. Each guest machine should be directly accessible by the SSH from the outer world. Right ...
12
votes
7answers
7k views

SSH garbling characters in vim/nano on remote server

... and it's driving me insane. Basically (this has been happening over the past couple months), I log into a few different CentOS servers (one Linode, another VPS, and a shared host to which I have ...
-2
votes
1answer
54 views

Accessing a machine with a non-static IP from outside the network [closed]

I have a machine listening for ssh connections within a university network. The way that they've configured the network is such that each building is assigned a single external IP. I have no ability ...
0
votes
2answers
94 views

inverse ssh X forwarding

Suppose I've computers office and home. I want to connect from home to office through ssh and run a program from home that opens a window, let say emacs, on the office screen. Is it possible?
0
votes
5answers
3k views

SSH command from PHP script - nothing, yet work at cmd line

I'm working on an EC2 box and trying to SSH command another box. The command works in command-line, even php -a interactive. However it does not work when running as apache. Example cmd:- ...
1
vote
3answers
11k views

WinSCP - SCP is working and SFTP is not working

I am trying to connect to our remote server using winSCP. It was working before. But from today I am not able to connect to the server using SFTP. If I changed the protocol to SCP, then I am able to ...
5
votes
2answers
4k views

scp returns “unexpected <newline>” error

I am trying to scp a file from a server to my local machine, but it is giving me this error: protocol error: unexpected <newline> This is my syntax: scp user@server:/path/to/file . It did ...
0
votes
1answer
3k views

Using rsync to backup Windows Server 2008 R2 files to Ubuntu, using plink for SSH

I am trying to configure rsync for backing up files on a Windows Server 2008 R2 box to a Ubuntu box. All (non-test) data must be encrypted. I have managed to get it working using just rsync, ...
0
votes
1answer
1k views

chown, chmod & bad settings on /home/user/.ssh directory in fresh install of CentOS 6

I just finished installing CentOS 6 last night (netinstall from georgia tech repository), and have been running into some weird SSH issues when I try to SSH from the CentOS box (behind my home ...
6
votes
1answer
1k views

ssh with passphrase, fallback to Google Authenticator

With the introduction of Google Authenticator and the ability to use it with ssh I was wondering if someone has gone through a sshd_config setup which would first expect a key if this fails, fall ...
3
votes
3answers
2k views

Why does TERM=xterm have to be set for my script to work correctly when remotely executed?

I'm attempting to automate the installation of a Debian server (debian 6.0 squeeze 64bit). Part of the installation requires the Sun JRE package to be installed. This package has a licence ...
2
votes
1answer
146 views

Can I encrypt a server's private SSH keys?

When a keypair is created for a normal user, there is an option to symmetrically encrypt the private key with 3DES. I usually believe this to be a good idea, then even if the key is stolen, it will ...
0
votes
1answer
2k views

SSH Tunnelling for HTTP: Does target HTTP Proxy Port have to be exposed?

An example: I am trying to use PuTTy to create an SSH tunnel from my laptop to my server (for the purposes of this example MyServer.com:22). Port 22 is enabled on the router between MyServer.com and ...
1
vote
3answers
918 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) . ...
2
votes
1answer
206 views

Security risks of opening firewall for ssh access from internal to DMZ

I have a server in our internal network, and there are files/reports on that server that I need to get to a box in our DMZ. They aren't served up directly from the box in the DMZ; they are processed ...
1
vote
0answers
173 views

How do I upgrade OpenSSH Server on Ubuntu Hardy (8.04) from v4.7 to CURRENT?

I tried to add backports to my apt sources but that does not make any newer version of OpenSSH show up as being available to upgrade to. See: https://help.ubuntu.com/community/UbuntuBackports Any ...
3
votes
2answers
783 views

GIT fetch remote: SSH timed out on port 22 (Ubuntu)

I've got an Oracle VM VirtualBox running Ubuntu 9.10, and also a pysical DELL server running Ubuntu 9.10 I can use putty to connect to both the VM and the DELL. From either I can ssh into the other, ...
5
votes
6answers
5k views

lots of failed SSH login attempts - should I be concerned? [duplicate]

Possible Duplicate: Is it worth the effort to block failed login attempts Is it normal to get hundreds of break-in attempts per day? I'm managing a number of completely different root ...
0
votes
1answer
163 views

Random loss of SSH connection between virtual and physical computer

I work on a problem that has been bugging me for some days now, and I don't know where to go next. I got a Windows 7 computer with VMware workstation on, and in VMware I have an Ubuntu 10.04 server ...
2
votes
1answer
139 views

Correct use of RSA Key Pairs

I have recently began making use of RSA Key pairs to login to various servers I manage and wanted to get some insight on best practice as I recently ran into some issues. Is it best practice to keep ...
0
votes
1answer
71 views

Is it possible to circumvent public key authentication restrictions using SSH daemon?

My web hosting plan does not support public key authentication, however advice given in Public key authentication unsupported by web host. Method to avoid entering password? question suggests it may ...
2
votes
1answer
567 views

why would ssh work the first, second, and third time but time out on the fourth?

I would like to be able to use ssh, but I end up getting an timeout intermittently. Here is how I can reproduce the error on the server in question: $ ssh <user>@<server> ls # returns ...
8
votes
1answer
608 views

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to ...
0
votes
2answers
1k views

How to allow password authentication OR key authentication on CentOS 5.7?

is it possible to enable the use of password authentication or key authentication in CentOS 5.7? All I can find is setting PasswordAuthentication to no which forces the use of keys... Thanks
0
votes
2answers
9k views

How to restrict a linux user to read only specific folder

I want to create a user that have only access to the following directories and can't see nothing else /home/vehicles/ #read only /home/images/ #read only /home/dump/ #read and write I used this ...
10
votes
5answers
22k views

Out of nowhere, ssh_exchange_identification: Connection closed by remote host

I am running Ubuntu 10.10 on a remote box. I ssh to it everyday without issues but today out of the blue, I get the following error: ssh_exchange_identification: Connection closed by remote host If ...
3
votes
1answer
471 views

openssh AllowGroups group from specific host

Is there any way to restrict ssh login from specific linux group to specific host? I want to reach something like "AllowUsers user1@host" for linux groups. Like: "AllowGroups group@host", but that ...
0
votes
1answer
84 views

Cloning server disk image creates networking issues

We have a bunch of Apple xservers but only one of them has VGA output and CD Drive. We've decided to replace OSX with Debian Linux (Squeeze for ppc). Meanwhile, my efforts to get the machines send ...
1
vote
1answer
334 views

What's faster: SFTP or FTP via SSH tunnel?

I find SFTP very slow in WinSCP, especially when many small files have to be transferred. Will FTP via SSH tunnel be faster?
0
votes
2answers
650 views

Authenticate Subversion users with svnserve AND SSH

When deploying my Subversion server, I don't like creating a system account for each user so I was thinking of another authentication method. I would like to use only one system account with SSH and ...
0
votes
2answers
2k views

Iptables allow access via ssh tunnel to internal network

I am trying to restrict access on a server only to ssh by doing this. This is working nicely iptables -A INPUT -i eth0 -p tcp --dport $SSH_port -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A ...
1
vote
2answers
216 views

ssh closes on successful login

I have ssh installed on a new install of Debian Squeeze. When I attempt to connect using a public key I can log in fine, but when I am using a password it disconnects me almost immediately. It've ...
2
votes
2answers
1k views

How to ensure that a MySQL slave server is using the SSH tunnel to replicate from the master?

I need to secure MySQL database replication between two CentOS 5.7 servers. Server 1 has the live database, and replication is already working fine to Server 2 which is located elsewhere on the ...
0
votes
1answer
695 views

Can not log in to Amazon EC2 instance (Beginner)

I am having difficulty logging onto my Amazon ec2 instance. I set it up, downloaded the key. At first it complained because my permissions were setup correctly. Then I executed: chmod 400 ...
5
votes
2answers
3k views

How can I connect to Amazon EC2 without ssh?

I killed ssh daemon by mistake. Any chance I can connect to the instance and start it again?
0
votes
1answer
233 views

SSH/SCP filebrowser supporting server hopping

To access our file server here, I need to connect first to a server which is public available and then open a second ssh connection to that server. If I need to copy files, I first need to copy them ...
1
vote
2answers
1k views

SSH connection times out

Given: vm - a WinXPsp3 virtual machine hosted by a Win7sp1 physical machine alice is the user on vm srv - a Win2008R2sp1 server bob is the user on srv quake - a linux server mark is the user on ...
0
votes
2answers
1k views

iptables make server connection very slow

When I add iptables rules to the server (on a local network), the connection becomes very slow. This is confirmed for both SSH (logging in goes much slower), and MySQL (websites use this server as ...
1
vote
3answers
1k views

Possible to enable ssh passwordless authentication via Windows Active Directory?

Is it possible to set up ssh and Active Directory (Win2008r2 flavour) such that domain-users can access *nix and ssh-servers-running-on-Windows-servers without needing to type their password? If so, ...
0
votes
1answer
161 views

Authenticate user(group) and encrypt port 8078 on a server using SSH2 keys?

I want to encrypt and authenticate port 8078 on a server running Jenkins using SSH keys (I'll pass our the public or private key as needed), and keep 8078 from being accessed by anything but SSH. I ...
17
votes
3answers
38k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
0
votes
2answers
298 views

Dynamic tunnel over two servers

From my computer (client) I can SSH connect to a server (host1) and from there I can SSH connect to another server (host2). However I want to set up a dynamic tunnel between my client and host2. I ...
3
votes
3answers
2k views

Stop ssh asking for passphrase

I'm connecting to a SSH server with a key file that has a passphrase. How can I make ssh stop asking for passphrase and always use the correct passphrase?
0
votes
1answer
140 views

SSH Key manager [duplicate]

Possible Duplicate: Centralized management system for SSH keys? I have multiple boxes and multiple employees. Is there a program or script that allows an admin to easily add or remove ssh ...
4
votes
2answers
3k views

sshd_config ForceCommand /usr/bin/rsync error “connection unexpectedly closed”

How should ForceCommand be configured in order to allow the backup user to execute any rsync command? With ForceCommand set to /usr/bin/rsync I receive the error below: connection unexpectedly ...