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)

17
votes
3answers
37k 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
2k 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 ...
1
vote
0answers
271 views

GIT Private Repository - SSH Access to Sub Domain on MediaTemple.net

I created a GIT Repository on one of my servers at MediaTemple.net the one I'm using is a (gs) Server. The repo was created on a subdomain (git.example.com) I then created two user accounts with SSH ...
2
votes
2answers
728 views

SSH config file is not being applied

I'm running Mac Os Lion and have the following ssh config file: $ cat /Users/fernando/.ssh/config Port 123 This should result in ssh connecting always on port 123, no? Well, what happens is that ...
1
vote
3answers
739 views

Unix software to continuously monitor packet loss

I'm looking for some software to monitor packet loss or packet retries. Preferably something that continuously monitors vs. a testing approach and preferably free. My server's OS is debian. I'm ...
126
votes
4answers
4k views

Is my password compromised because I forgot to hit Enter after ssh username?

I've just tried logging into a Fedora (release 13 Goddard) server using SSH (PuTTY, Windows). For some reason the Enter after typing my username didn't go through and I typed in my password and hit ...
5
votes
2answers
921 views

Remote access to Windows Server 2008

What are the tools/method to remotely access and maintain the Windows Server 2008. On Linux I am fine with the ssh, is the Remote Desktop the proper tool there? Thanks a lot Regards, STeN
2
votes
7answers
1k views

aliasing “git” ssh login to “gitolite”

I'm installing gitolite from CentOS packages for my client. The package creates a gitolite user, which will be visible explicitly during a "git clone" operations. The client wants to use "git" and ...
1
vote
3answers
2k views

SSH login is very slow from VPN

I have a server that has OpenSSH running. When I log from the local network (there are a few network interfaces and this is true for all of them) then the login is relatively fast - a couple of ...
1
vote
0answers
970 views

VMware ESXi 4.1: how to create a new user with root permissions

In ESXi 4.1, I have SSH access enabled and a user jdoe, who is able to connect to the system via ssh. ~ $ less /etc/passwd | grep jdoe jdoe:x:3:0:John Doe:/home/jdoe:/bin/ash The user jdoe has all ...
2
votes
1answer
17k views

How to shutdown a virtual machine on ESXi5 over an ssh terminal session?

How can I shutdown a virtual machine when I am on the commandline of an ESXi5 host over ssh? Sidenote: To enable scripts on other machines to login to the ESXi without password, add the public ...
1
vote
1answer
430 views

Cannot connect to ec2 instance

I've created a new ec2 instance based on the php cloudformatino image ami-6fc2f61b and attached my existing key to it. Security group allows ssh and http. Yet, I'm unable to connect: $ ssh -v -i ...
19
votes
2answers
21k views

public key authentication fails ONLY when sshd is daemon

I have no clue on how this happens. The distro is Scientific Linux 6.1 and everything is set up to perform authentication via public key. Yet, when sshd is running as a daemon (service sshd start), it ...
14
votes
3answers
6k views

SSH connection lost during server upgrade - How to reconnect to process?

So, I was performing an Ubuntu Server upgrade from 11.04 to 11.10. I forgot about it in the background, and my SSH client timed out and disconnected (putty on Windows, go figure). The last thing on ...
1
vote
1answer
174 views

Troubleshooting potential compromised server from Brute Force SSH Attack [duplicate]

Possible Duplicate: My server's been hacked EMERGENCY So I noticed some files/folders on my webserver and investigating leads the fact that a brute force attack via SSH was done on my ...
4
votes
2answers
846 views

SSH server breakin attempt?

I am running a Gentoo Linux server, and use Fail2Ban to block the script kiddies and their relentless banging on my SSH port. (Yes I know I can move to a different port number, but that is work, and ...
27
votes
8answers
82k views

“Add correct host key in known_hosts” / multiple ssh host keys per hostname?

Trying to ssh into a computer I control, I'm getting the familiar message: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ ...
0
votes
1answer
134 views

redirecting to the originating server

The following is working as expected. The only problem is that it does not return the source server command prompt unless I hit Ctrl + c [abc@server]$ 0</dev/null echo "ls" | ssh -t -t ...
1
vote
0answers
164 views

OpenVPN Failover Validation

I've never seen something like this: I'm using OpenVPN Access Server to validate failover between two servers. When I validate their SSH connecction I get this error: ERROR: CONNECT_SECONDARY: ...
4
votes
2answers
308 views

Is it dangerous to leave an ssh connection open in a terminal for long periods of time?

Other than the obvious danger of someone physically coming upon your open computer when you aren't looking and having access to your server, is there any danger if I leave an ssh connection open for a ...
0
votes
1answer
163 views

SSH “Connection reset by peer” error

I'm was messing around on an Ubuntu EC2 instance. After installing postfix and opening ports 110 & 25 I reboot the instance. Now when I try and login via ssh I get this error: Read from remote ...
2
votes
2answers
920 views

run a script on remote server

I am trying to run a script on remote server as a root user. I have this line in my shell script. cat /home/myuser/create_user_updated.sh | ssh myuser@$myip "sudo sh" I get the following error. ...
2
votes
2answers
295 views

how to add a (given) private key in ssh whose public key is already setup on server

I KNOW how to setup a new ssh key pair with github. If someone gave me a private key and told me to connect to a server via ssh on a mac, how do I set this up? NOTE: I can't change the server ...
5
votes
1answer
574 views

Install single SSH key multiple times on single machine via puppet

I want to have one place where I have defined ssh keys for my users. These users can be in different (multiple) roles on single server. So I defined ssh_authorized_key as virtual and then wanted to ...
1
vote
2answers
2k views

SSH public key authentication issue [duplicate]

Possible Duplicate: SSH key exchange is not working In Server A: I did the following steps: ssh-keygen –t rsa cd /.ssh cp id_rsa.pub authorized_keys Then in Server B: I created the .ssh ...
1
vote
1answer
252 views

SSH get trace to host

When using some kind of XEN VM's as user, how can I get trace to host where SSH leads to? I encountered problem, that when listening SSH server on ip from ifconfig, I couldn't connect to it. Need to ...
4
votes
3answers
103 views

Putting server configurations in version control via SSH

I have a bunch of *nix servers in production. I would like to put it's important configuration files in version control The basic idea I had was to Put a distributted version control system so ...
2
votes
1answer
2k views

Can SSH into server but cannot type anything in the prompt. What is a possible cause for that?

I can ssh into one of my servers, I log in fine, but at the prompt I cannot type anything. It just hangs there after the welcome message. I've also tried the DRAC console (its a Dell server), but I ...
-3
votes
2answers
2k views

How do I change my nameservers' IP addresses using SSH?

How do I change my nameservers' IP addresses using SSH? I do not want to change them using cPanel.
2
votes
3answers
2k views

How to avoid stalled scp transfer when tunneling through a gateway over ssh?

I'm try to transfer a large (1GB+) file from one machine to another, but I have to tunnel through a gateway in between. I'm able to transfer small files just fine. However, with the big file, the ...
4
votes
2answers
288 views

Is it possible to use ssh key which contents is specified in environment variable?

I'm working on remote servers and I need to do a git clone from a another server using my private key. But I don't want to store my key on the remote servers. I want to avoid storing ssh key on the ...
0
votes
1answer
386 views

Installing VNC or equivalent service on Ubuntu 10.4 minimal via SSH

I recently purchased a quite expensive Rootserver. The only way to connect to it is via SSH. That works perfectly fine and I'm happy with it. But sadly, my boss wants a GUI. SO my first thought was: ...
1
vote
1answer
985 views

virtual sftp users with openssh

Is it possible to setup a SFTP service with OpenSSH with the use of virtual users (not /etc/passwd)? I'm aware of all the chroot/jail capabilities of OpenSSH. I also read somewhere that the PAM ...
1
vote
1answer
1k views

SSH / 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
102 views

Display specific word in file. To be used as varible, grep for email in log

I'm looking to display just the email address in the /var/log/secure file. The email goes into a variable, so just grepping for lines won't work. I know how to string together sed commands, but is ...
5
votes
4answers
855 views

Reaching a Linux server with a private IP without VPN

I'm working on a network where I can't obtain a public IP address or set up VPN access. Is there a way that I can communicate with a local server remotely by using an intermediary in the cloud that ...
0
votes
4answers
99 views

is there a tool for managing user access of linux servers? [duplicate]

Possible Duplicate: A system for distributing SSH public keys Suppose that I have four servers (SA, SB, SC, and SD). I want to give user X access to SA and SB. I can do it easily by ssh ...
1
vote
5answers
3k views

SSH key exchange is not working

Is there any way to verify why SSH key exchange between 2 servers is not working? In Server A: I did the following steps: ssh-keygen –t rsa cd /.ssh cp id_rsa.pub authorized_keys Then in Server ...
6
votes
2answers
1k views

How To Organize and Use Multiple RSA Keys On Local Machine?

I have Server_A, Server_B, and Server_C. I want to generate unique authentication keys for each, and organize them on my local machine running Lion like so: Put server_A keys in ...
1
vote
0answers
127 views

Is it possible to open terminals in a grid layout when using ClusterSSH?

I'm using the ClusterSSH tool (using the cssh command) to admin clusters of between 4 and 8 machines. By default, each terminal onto a cluster host is tiled, and opened to the right of the previous, ...
-5
votes
4answers
8k views

Checking sftp connectivity [closed]

I can connect to the remote server using following command... sftp abc@255.136.181.123 But this works from server A and if I use the same command on Server B it does not work. 1) What changes ...
0
votes
1answer
553 views

RSync shell script failing to run as CRON, runs fine manually

I have a simple shell script that runs Rsync. It runs fine if I call it manually from the command line, but when I set it up as a CRON job I get the following error: rsync: failed to open exclude ...
0
votes
3answers
205 views

running a command after the ssh has opened the tunnel

I want to run some process that requires an opened ssh tunnel. How do you run some command AFTER the ssh tunnel is successfully opened? Timers are not good enough as network speed and remote machine ...
1
vote
1answer
114 views

Reconnect to screen and preserve splits

Is it possible to reconnect to a disconnected screen session and preserve the screen splits?
1
vote
3answers
2k views

ssh hangs on “Last login” line

This happened for the first time three days ago - I ssh to the server, authenticate using a password, get the welcome message but it remains hanging on the "Last login:..." line. The command line ...
1
vote
2answers
467 views

SSH: Give user read/write permissions [closed]

How do I give a user certain read/write permissions?
1
vote
2answers
8k views

Putty access denied

I'm trying to connect SSH using Putty to my server but somehow I cannot connect and it comes with Access Denied error when I type in my username. Is there something I need to do to fix this issue?