Questions tagged [ssh]

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.

Filter by
Sorted by
Tagged with
11 votes
3 answers
18k 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 ...
Bart B's user avatar
  • 3,507
0 votes
3 answers
327 views

executing a command after ssh

The following command works as expected: ssh [email protected] "ssh [email protected] "mysqlshow"" But the following does not: ssh [email protected] "ssh [email protected] "mysql test -Bse"show ...
shantanuo's user avatar
  • 3,619
0 votes
1 answer
826 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 ...
Kyle's user avatar
  • 1
2 votes
1 answer
14k 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 ...
Rilindo's user avatar
  • 5,088
0 votes
4 answers
4k 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 ...
binaryorganic's user avatar
1 vote
2 answers
10k 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 macbook,...
ejf's user avatar
  • 131
2 votes
3 answers
5k 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 ...
Johnas's user avatar
  • 21
0 votes
3 answers
1k 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 ...
gerhard's user avatar
  • 83
11 votes
2 answers
26k 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 ...
lpfavreau's user avatar
  • 439
0 votes
1 answer
239 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" . ...
anaptfox's user avatar
8 votes
2 answers
7k 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 ...
Ehsan's user avatar
  • 91
-2 votes
1 answer
50 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 ...
Lisandro Vaccaro's user avatar
-1 votes
4 answers
2k 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 [~]# /usr/local/...
James Anderson's user avatar
3 votes
3 answers
2k 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 is ...
Steve Robbins's user avatar
-1 votes
1 answer
129 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 ...
dab's user avatar
  • 149
1 vote
2 answers
440 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 ...
Tzury Bar Yochay's user avatar
38 votes
2 answers
47k 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 ...
Gavin Miller's user avatar
2 votes
2 answers
5k 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, ...
Mark Bouchard's user avatar
1 vote
3 answers
993 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 ...
Quintin Par's user avatar
  • 4,443
7 votes
1 answer
4k 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 ...
tylerl's user avatar
  • 15.2k
1 vote
3 answers
3k 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 ...
gdurham's user avatar
  • 879
2 votes
2 answers
4k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
AndreDurao's user avatar
2 votes
1 answer
744 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 (11....
jsharpe's user avatar
  • 131
-3 votes
3 answers
262 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) ...
James Anderson's user avatar
0 votes
1 answer
268 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 ...
Trent Scott's user avatar
3 votes
1 answer
2k 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 ...
Trent Scott's user avatar
1 vote
2 answers
4k 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 ...
zerkms's user avatar
  • 461
5 votes
5 answers
20k 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 ...
Christos Hayward's user avatar
4 votes
2 answers
6k 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 ...
Stefan Lasiewski's user avatar
3 votes
2 answers
1k views

SSH Connection Lost

I have recently started using iptables, and I executed iptables -F without knowledge of what it might do. And suddenly I have lost connection to the node. I can't even ping the node. Any help would be ...
Ashwin's user avatar
  • 31
2 votes
1 answer
109 views

EC2 security group settings are not allowing SSH access

So when I open port 22 and 80 in the default security group I'm not able to ping the domain. I've opened TCP, UDP, and ICMP to all and now it works but of course I need to find another solution. ...
Jeremy Smith's user avatar
1 vote
1 answer
239 views

I'm not able to add passwordless entry to a new user on EC2

I'm trying to add a deploy user to a EC2 instance to work with capistrano. I've been able to add passwordless entry for user ubuntu, but it's not working with "deploy". I'm setting up this user as ...
Jeremy Smith's user avatar
0 votes
1 answer
201 views

Error on trying to ssh to a prgmr box when using PuTTY like utility KiTTY

I recently got a box on prgmr. Excited, I tried to login using my username password in KiTTY (which is basically an improved PuTTY) and got the following error, shown in the screenshot. Now, I can ...
detj's user avatar
  • 103
0 votes
1 answer
4k views

Unable to open display ":0" on ubuntu 11.04 (with unity)

I'm connecting to a ubuntu 11.04 through ssh, and I'm trying to run this command(is a Image Magick command): *This command saves any visible window on an X server and outputs it as an image file. ...
xBoy's user avatar
  • 3
5 votes
2 answers
16k views

Easiest way to sync two folders

What's the easiest way to sync the contents of a folder on a Mac OSX machine with another folder on a Linux server? You can use scp: scp -r /path/to/folder/ username@IP_ADDRESS:/path/to/sync/with ...
summatix's user avatar
  • 235
7 votes
2 answers
29k views

ping fails but ssh succeeds

I'm facing a situation where one app(using ssh) can connect from Machine A (Linux) to Machine B (windows), whereas Machine A cannot ping Machine B. Another app on Machine A which connects to Machine B ...
StuckAgain's user avatar
147 votes
9 answers
121k views

Keeping a linux process running after I logout

I'm connecting to a Linux machine through SSH, and I'm trying to run a heavy bash script that makes filesystem operations. It's expected to keep running for hours, but I cannot leave the SSH session ...
doc_id's user avatar
  • 1,509
0 votes
3 answers
2k views

disable SSH interactive login

I'd like to conditionally disable interactive logins in ubuntu in the event that a user attempts to login to an ssh shell with an invalid username. Say I have a user 'bob' on my server, but the user ...
Tucker's user avatar
  • 165
4 votes
2 answers
206 views

On demand ssh access

So I have that access to production environment given by my sysadmin, but I do not trust myself. The setup is with private/public keys. I am looking for a way to make a manual operation before ...
plcstpierre's user avatar
5 votes
5 answers
2k views

CentOS: When I SSH, core.* files are created

When I SSH into an instance of a CentOS server, I notice that these files like this are created: 11714560 Sep 14 02:18 core.1084 Does anyone know what these are, and perhaps why this is happening?
indi's user avatar
  • 181
3 votes
6 answers
4k views

Transfer a file from remote server A to remote server B from server C

I have an interesting problem I'm trying to solve. I have a JumpBox server that I have in order to securely ssh into client's servers. This is the only server my clients ever open up port 22 to. ...
wrangler's user avatar
  • 3,170
3 votes
2 answers
4k views

Why is my ssh connection failing?

I'm trying to use SSH authentication between my WinXP desktop running Cygwin and a Mac laptop, and for the life of me, I can't get it working. My public key is on the macbook in the authorized_keys ...
WindyCityEagle's user avatar
4 votes
3 answers
5k views

Can't change assigned key pair on amazon ec2 instance

I can't seem to find the option to assign a newly created key pair to an amazon ec2 instance after deleting away the original key pair. I wanted to "deny" the first key pair from access to the ...
user avatar
9 votes
1 answer
5k views

SSH Prompts for password even though private keys are available, presented to server and known to it

I've got an ubuntu desktop within a VirtualBox machine and I've got a strange behaviour with the openssh server : when my user is not already connected to the server (first ssh connexion), it ...
Cerber's user avatar
  • 1,261
4 votes
2 answers
2k views

Custom motd for a specific user after logging in via SSH?

I want to run script upon initial login over SSH that displays some helpful information to the user logging in. However, I don't want this script to run on every login. That is, if the user starts ...
James Sumners's user avatar
1 vote
3 answers
2k views

AllowGroups and Match Address for SSH

I have a home server with some SSH accounts that have weak passwords. Since we only used it locally, that's not that big a problem. Now I want to allow external access from only one account, but ...
pascal's user avatar
  • 221
0 votes
1 answer
4k views

Problem with upgrading OpenSSH to the latest version

After i upgraded openSSH to the latest version: OpenSSH_5.9p1 i tried to change the /etc/ssh/sshd_config , tried to set enable chrooted access and restarted the ssh with #/etc/init.d/sshd restart. But ...
taras's user avatar
  • 269
2 votes
1 answer
5k views

How do to upgrade OpenSSH remotely via ssh command line?

I need to upgrade OpenSSH in my fedora server remotely using ssh access. Is it safe doing it via ssh remotely ? Any recommended and safe method to do this upgrade remotely ? Update: After i upgraded ...
taras's user avatar
  • 269
5 votes
1 answer
2k views

Archlinux and openssh

I need to setup an Archlinux vps with openssh, everything is running smoothly except that I couldn't ssh in. I noticed openssh wasn't installed so I looked on the wiki which said to do : pacman -S ...
Lucas Kauffman's user avatar

1
140 141
142
143 144
180