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
7k 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?
0
votes
1answer
192 views

Connect from one server to another via SSH, Iptable rules needed

I have 2 servers and want to be able to connect via SSH from server A to B and vice versa. What Iptables rules should I set on both machines to make this possible ? SSH is runnning on default port 22
1
vote
2answers
202 views

sshd helper program on access to authorized_keys

second question, second problem: I am searching for a way to dynamically let sshd search for public keys on my server. So, shortly spoken, I want, when authorized_keys is accessed by sshd, a helper ...
1
vote
2answers
2k views

How to use git pull without entering the passphrase

I'm trying to pull from a GitHub repository in an unattended way, but everytime I do it I get: Enter passphrase for key '/home/yc2/.ssh/id_rsa': And I have to enter it for it work. I managed to ...
4
votes
1answer
245 views

SSH: How to start a process that won't end after system reboot?

Is there a way to do this so when I reboot my linux server the process will reopen on startup?
0
votes
1answer
148 views

Fail2ban Custom Port

I have a rule like this in my jail.local file: [ssh-ddos] enabled = true port = ssh,sftp filter = sshd-ddos logpath = /var/log/messages maxretry = 4 If I want to use a custom port for SSH, ...
2
votes
1answer
728 views

Can't seem to SSH into AWS EC2 instance, ssh permission denied error

I've launched a new EC2 instance with AWS using Amazon 64 bit linux (amzn-ami-2011.09.1.x86_64-ebs (ami-20506254)) and I'm having trouble ssh-ing into it. I've generated a public/private ssh keypair ...
1
vote
1answer
701 views

Does enabling cPHulk from within WHM protect my entire server? [closed]

So I have enabled cPHulk on my web server, and just realized now that somebody (most likely a bot) is attempting to brute force their way into my WHM, thus leaving me out as well. I was shown this ...
2
votes
3answers
444 views

Secure http transfer with ssh (tunnel)?

I have two servers which communicate over http. I wish this transfer be secure. How can this be achieved? I do not wish to use use https (that would require ssl certificate,right?) [SERVER-I] --> ...
1
vote
1answer
1k views

Reading stdin from python program started via ssh in terminal

I have got this little python3 script test.py: import sys print('test1') test1 = sys.stdin.read() print('test2') test2 = sys.stdin.read() print(test1) print(test2) And I would like to run this ...
1
vote
3answers
845 views

SSH connection keeps crashing

although this is not a real programming question perhaps anyone has any idea regarding my problem. It's pretty weird. When I remotely connect one of our ubuntu servers per ssh the connection can be ...
1
vote
1answer
696 views

error in auth.log but can login; LDAP/PAM

I have a server running OpenLDAP. When I start a ssh-session I can log in without problems, but an error appears in the logs. This only happens when I log in with a LDAP account (so not with a system ...
0
votes
1answer
82 views

ssh connection when not logged on

I am trying to set up a Ubuntu web server so far everything works but i ran into one problem. I installed OpenSSH to be able to connect from my windows PC via Putty to the server, but this only works ...
0
votes
1answer
640 views

unable to connect EC2 instance from browser, also failed to connect via SSH

From browser http://assigned_instance.amazonaws.com Unable to connect Firefox can't establish a connection to the server at assigned_instance.compute-1.amazonaws.com. From terminal### (SSH issue?) ...
3
votes
4answers
355 views

Copy directory using ssh tunnel

The following command is working as expected. ssh soak@10.10.10.11 "ssh soak@10.199.199.191 'cat test.txt'" > /home/shantanu/test.txt What I need to do is to copy the entire directory instead of ...
2
votes
2answers
838 views

Best way to run remote SSH command requiring root, but not as root

I'm struggling with running the following command: ssh someuser@lab-test "sudo /usr/local/scripts/user.sh add tstt7777 177700007 \"Test User 06\" " Long story short I need to run the user.sh ...
6
votes
5answers
859 views

Run a Command Until it Stops Failing

I want to run a command until it completes sucessfully, then stop. I know I can set up a bash loop to do this, but I'm curious if there are any portable ways to do this similar to watch -n5 that would ...
0
votes
1answer
65 views

Limitied Shell for users - Ubuntu

At my old job we had a Ubuntu 8.04 server that we SSH into. The shell was very limited (no bash history, can not tab predict commands, etc). Is there a config file to do things like that?
11
votes
4answers
4k views

Using Puppet to remove SSH keys not explicitly allowed

I'm using puppet to distribute SSH keys, like so: ssh_authorized_key { "alice@foo.com": ensure => present, key => 'xxxx', type => 'ssh-rsa', user => 'deploy', } The ...
0
votes
1answer
281 views

OpenSSH + Kerberos SSO problem: Wrong principal in request

Thanks to your help , I am getting closer. Now at this point, I am getting the following message with logging in via ssh: debug1: Unspecified GSS failure. Minor code may provide more information ...
7
votes
1answer
1k views

SSH through a SOCKS Proxy? (client = OpenSSH OS X)

I'm not sure if this question is best suited here on ServerFault or over on SuperUser. Thinking about it logically I think this is a sysadmin question, so I'm putting it here, and if the mods think it ...
0
votes
3answers
282 views

executing a command after ssh

The following command works as expected: ssh soak@10.10.10.11 "ssh soak@10.199.199.191 "mysqlshow"" But the following does not: ssh soak@10.10.10.11 "ssh soak@10.199.199.191 "mysql test -Bse"show ...
0
votes
1answer
372 views

fail2ban Service Crashing

I have a miss behaving fail2ban service on a very much live server. It'll tally up to 100% cpu usage after boot for about 30min then goes down to a stable 0.1% It freakin me out, something is crashing ...
1
vote
1answer
338 views

OpenSSH + Kerberos SSO: No key table entry found for host/localhost.localdomain

SSO not working with OpenSSH - I have not been able to get GSSAPIAuthentication to work with Kerberos. Everytime I attempted to login, I kept getting prompted for the password. During the ...
0
votes
4answers
2k views

Despite all the information available, I'm stumped on passwordless logins. Help?

So I have my home computer & a server. I want the server to be able to SSH into my home computer w/out a password. I have followed various tutorials and can ssh from home to server with no ...
1
vote
2answers
5k views

ssh connection refused only from my mac, my linux box connects without issue

I am having a strange issue. I have an EC2 server (Arch Linux) that I am able to access (via ssh) from my local linux server without issue, however when I try to ssh into my EC2 server from my ...
0
votes
2answers
750 views

How to log “remote execution over SSH”

If a user execute commands remotely over ssh : [user@remote ~] $ ssh USERNAME@SERVER COMMANDS How the SERVER administrator can log those COMMANDS executed in a "not a tty" session ? Also when a ...
0
votes
3answers
956 views

ssh-agent forwarding Ubuntu 10.04.03 LTS

What started as an annoying issue a few weeks back, is now driving me mad! At home, I have a Ubuntu 10.04.03 box which acts as a fileserver. I backup things on it via rsync from other boxes, outside ...
5
votes
2answers
6k views

No TTY present when running commands over SSH in here-document

I'm trying to run a command over SSH like this in a here-document: ssh example.com <<END sudo /etc/init.d/apache2 reload END Which normally works except when I'm trying to run something that ...
0
votes
1answer
120 views

ssh permission denied in terminal but not inNautilus

I have two Ubuntu machines on the same network. I installed openssh-server and client. When I try to connect through the terminal i get the following message: "Permission denied, please try again" . ...
3
votes
2answers
713 views

memory&swap are full, can't ssh; any option other than physical restart?

by mistake, i executed some applications that used all memory (and i think swap) on my ubuntu server and its now crashed, SSH doesn't work and freezes. Do you know any other options other than ...
-2
votes
1answer
38 views

Modify a text file in server? [closed]

I need to modify the ape.conf file in my apache server. However when I access it through filezilla the file is read only. How do I modify it? Can I change permissions with SSH? Or what would be the ...
-1
votes
4answers
523 views

Why isn't httpd working?

I have just uninstalled Litespeed with the code below, but am getting an error when I try to start Apache through httpd. What can I do? Here's the commands I used: root@s15430558 [~]# ...
2
votes
3answers
703 views

PHP mail() function freezing

I had an issue where the permissions of /var/lib/php/session got overwritten so I could no longer created session variables in PHP. I think the same thing is happening with my mail function. Where ...
-1
votes
1answer
115 views

Debian Web hosting privilages/Apache attacks prevention and priv management

I'm wanting to setup a web hosting service similar to Dreamhost which allows SSH. I'm wanting to know how I can go about letting users connect via SSH but prevent any type of malicious activity. What ...
1
vote
2answers
79 views

cannot ssh to a cloned machine, while can to the original

I have several Computer On module boards which are the same generation/version/model. I have setup the first in the series, with all configurations and settings I wanted. I then took the Compact ...
10
votes
2answers
7k views

Is a central location for authorized_keys a good idea?

I'm in the process of configuring a cloud server to run the following stack: Ruby, Passenger, Apache; under Ubuntu 10.04 (Lucid Lynx). In the process of wanting to make the server easier to manage I ...
0
votes
2answers
391 views

SSH client hangs after entering password - Ubuntu 10.10

I'm having an issue connecting to servers via ssh at work over wireless (haven't tried over ethernet). Whenever I try to connect to any server with ssh within our network, I receive a password prompt, ...
1
vote
3answers
339 views

Ssh log monitor

Are there any tools to monitor ssh logs at /var/log/secure and report activity? I am looking for some tools that will proactively tell me about user actions and highlight malicious activity. I don’t ...
5
votes
1answer
1k views

SSH session logging

We have a policy of logging all SSH session activity for CYA purposes with our clients. With PuTTY under windows this is trivial, as we can log each session to a file using PuTTY's built-in logging ...
1
vote
3answers
1k views

Limiting access to networks through centrally controlled ssh jumpbox

I need to restrict access to many networks which I have no control over and am planning on using a jumpbox to be the single point of entry into all of the environments. A user would log in with their ...
2
votes
1answer
925 views

Making a multi hop SSH tunnel a mysql server (3-4 hops)

I'm trying to get to a mysql server on a remote network, and to get to it I currently have to do several ssh hops, so I can use the mysql command line interface. I'd really like to do a mulit-hop ...
1
vote
1answer
823 views

iptables Ubuntu VPS SSH rule

I'm trying to configure a VPS Ubuntu server to connect to codebase GIT server, just like heroku codebase authentication is based on SSH RSA keys. I've uploaded the keys to the repository, and when ...
2
votes
1answer
589 views

can't ping/ssh new libvirt instance

I have a working virtual host that was Ubuntu-Server Lucid (10.4). I've been using it for a while and has several functional guests created on Lucid. Today I upgraded to Maverick, then to Natty ...
-3
votes
3answers
239 views

Why am I getting drive critical warnings and how can I fix this? [closed]

I receive these emails (on my cPanel Linux Cent OS 5 Server) every day and haven't a clue what they mean or what to do; Drive Warning: /dev/root (/) is 81% full Drive Critical: /dev/vg00/var (/var) ...
0
votes
1answer
88 views

Secure Access to NFS Share?

Is it safe to use an NFS share as the root of a web directory on another server? Under this config, multiple users would place their files on the NFS (not the web server). How would you go about ...
3
votes
1answer
973 views

Jail User to /var/www/username Directory via SSH

I have multiple folders in /var/www for different websites -- Apache uses name-based Virtual Hosts (Ubuntu Server). Suppose I want to allow someone to access their /var/www/user directory, but not cd ...
1
vote
2answers
2k views

SSH doesn't start

Here is what I see in syslog Sep 18 01:01:16 homepage init: ssh main process ended, respawning Sep 18 01:01:16 homepage init: ssh main process (1444) terminated with status 255 Sep 18 01:01:16 ...
3
votes
5answers
7k views

How do I configure sshd on Debian to use Public Key Authentication?

I'm working on a (Debian) Dreamhost VPS, and it seems to want password-based authentication only: adding my RSA and DSA public keys to ~/.ssh/authorized_keys did not change the behavior of requiring a ...
1
vote
2answers
453 views

Can I use SSH tunnels as a VPN substitute?

I'm working at home. I need to access machines which are in the office. The office has a private LAN (e.g. 192.168.0.0/16) with 100 machines on it. I would like to be able to access these machines ...