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
2answers
1k views

ulimit not reflected for jenkins slave

Problem Got java.io.IOException: Too many open files in solr indexing through jenkins. Did some googling and found we have to set the ulimit for the box in where we are running the job. So set the ...
2
votes
3answers
1k views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
0
votes
0answers
51 views

Chroot an SSH user under Linux? (OpenSSH) [duplicate]

Possible Duplicate: How can I chroot ssh connections? I want to allow a friend of mine access to a server via SSH. Is there a way to "chroot" him to his home directory? I found a lot of guides ...
0
votes
1answer
181 views

Start ssh connection and run in the background

I've set up port forwarding over ssh so I can securely connect to a web console. Since the bash command is pretty long, I want to create a small script that will do the following; Check if there is ...
1
vote
1answer
551 views

Does 'ssh <remote> -t <command>' has a timeout? killed by Signal 15

I want to run a job on remote server with no login. I found that I can run my job using ssh as: ssh remotenode -t /path/to/myjob &> /path/to/log However, the job would be killed by Signal 15 ...
0
votes
1answer
232 views

ssh over a tunnel in order to configure auto login

I m trying to copy the id_rsa.pub key to the server. The server in my case also has a virutal machine called dev which runs on the host machine. I copied the id_rsa.pub key to the host for auto log in ...
0
votes
2answers
3k views

Flush mod_pagespeed cache in Debian

I need a way to flush the mod_pagespeed cache while developing. According to mod_pagespeed documents, I should run the following command: sudo touch /var/mod_pagespeed/cache/cache.flush In Debian ...
1
vote
1answer
438 views

Chroot won't work with OpenSSH

I have the latest OpenSSH, I have a group "members" with 5 users. I need to get SFTP to certain directory, nothing else. I seem to be able to do it with Chroot, but it's not working. Heres my /etc/...
5
votes
2answers
402 views

Secure copy uucp style

I often have the case that I have to make a lot of hops to the remote host, just because there is no direct routing between my client and the remote host. When I need to copy files from a remote host ...
0
votes
2answers
114 views

Web traffic go through standard internet connection and other traffic through VPN

I am deploying a set of computers to a diverse set of geographical locations. However, I still need to be able to ssh into them to do updates. Once deployed, I would like all the standard internet ...
23
votes
2answers
891 views

How can one send commands to the “inner” ssh session?

Picture a scenario where I'm logged into a server (which we'll call "Wallace") from my local machine, and from there I ssh into another server (which we'll call "Gromit"): laptop ---ssh---> ...
1
vote
2answers
2k views

How to configure RHEL so users can access an app GUI remotely

I have an application installed in my RHEL6 box that has a GUI (AppGui.sh). My problem is that a few non-tech users would like to access this GUI remotely. I've tried several guides over the internet ...
2
votes
4answers
370 views

SSH into machine with unknown IP

I will be helping set up a bunch (>50) machines that are distributed geographically and across different networks. Thus, a priori, I will not be able to know what the IP address is of each of the ...
12
votes
2answers
723 views

SSH only works after intentionally failed password

So, I'm having a rather weird problem. I have a server, that when I try to SSH into, immediately closes the connection if I type in the correct password on the first attempt. However, if I ...
0
votes
1answer
181 views

Simple jail for user with open-ssh

Can I confine my users to their /home/%u directory using simply open-ssh configuration? I did the following from what I found on the Internet Stopped the server To the sshd_config file appended the ...
5
votes
3answers
5k views

SSH: one authorized_keys for multiple service accounts

Is there a way to configure SSH to check a single authorized_keys file for multiple users? I know I can copy the public key into each user's authorized_keys file but for ease of management I'd like an ...
2
votes
1answer
551 views

How to background a nohup process using parallel ssh?

This command works: parallel-ssh -i -O 'IdentityFile=control.pem' -l control -H example.com 'nohup /home/hubot/runHubot.sh' 2>&1 When I log onto my server, ps shows me that the runHubot ...
0
votes
1answer
58 views

scp not downloading file in the proper location

So I'm SSH-ing into a server and trying to download a file to my local machine using scp: scp user@remotehost:/path/to/file/filename . But the file ends up downloading in the home directory on the ...
0
votes
1answer
2k views

Secure SFTP Configuration that Allows SFTP User Write Access

I'm attempting to setup OpenSSH on Ubuntu 12.04 to allow the following User can only SFTP (no shell access) User can write (upload) files Access is secure such that no user can view another user's ...
3
votes
2answers
2k views

Passwordless SSH not working - keys copied and permissions set

I know this question has been asked, but I'm certain I've done what all the other answers suggest. Machine A: used keygen -t rsa to create id_rsa.pub in ~/.ssh/ copied Machine A's id_rsa.pub to ...
0
votes
1answer
2k views

Choosing a buffer size for large file transfer - SSH

I am trying to transfer large files over an internal network using Secure Shell SSH Client (3.2.9). The default buffer size is 32KB, which should be plenty, but my specific case makes me wonder if I ...
1
vote
2answers
914 views

openssh sftp chroot

I chrooted a user to the directory /var/www/upload using ChrootDirectory /var/www/upload in my etc/ssh/sshd_config. The permissions of all the files in var/www/upload is 755 and owner is root:...
0
votes
1answer
2k views

openssh-server: ChrootDirectory is not allowed within a Match block

My sshd_config looks like this: Match User c_upload ChrootDirectoy /var/www/upload ForceCommand internal-sftp etc/init.d/ssh restart fails with this message: /etc/ssh/sshd_config: ...
3
votes
1answer
857 views

Disallow password auth in SSH via ~/.ssh/config?

I know I'm fighting a losing battle here, but with the right bit of elbow-grease I've got my shared hosting with GoDaddy to let me SSH in via pubkey auth (added in the ~/.ssh directory and an ...
0
votes
1answer
3k views

SSH very slow when connecting from external [duplicate]

Possible Duplicate: ssh delay when connecting We have a CentOS server that we use for internal testing purposes, which has sshd enabled. When I (as a developer) am at the company, I use ssh ...
0
votes
3answers
782 views

ssh login taking too long

I have a hardware which is flashed with the following operating system : Linux colibri 2.6.26-colibri_pxa3xx #14 I have noticed that the ssh login as well as telnet takes too long, even though I try ...
3
votes
2answers
329 views

windows equivalent of linux ssh -X server command

I have a linux server, and from my linux client I run a graphical app on the server issuing on the client ssh -X server command command is a gnome app Is there a way to do the same from a ...
2
votes
2answers
3k views

rsync to EC2 using ssh -i

I'm able to ssh -i mykey.pem to EC2. I'm able to scp -i mykey.pem to EC2. But when I try to rsync -avz -e "ssh -i mykey.pem" I get this error: Warning: Identity file mykey.pem not accessible: No such ...
2
votes
1answer
2k views

How do I correctly SSH port forward using LiveReload on Redhat?

Referencing this page: http://feedback.livereload.com/knowledgebase/articles/86280-if-you-edit-files-directly-on-your-server It says you can remotely port forward the LiveReload specific port of ...
2
votes
1answer
4k views

Is it possible to allow key based authentication for sshd_cofnig chroot sftp users?

I'm running an Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-30-generic x86_64) Server, with OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012. I'd like to configure chroot for sftp access using ...
2
votes
3answers
5k views

Why can't I ssh into my server using my private key?

I just setup my new server as I used to, and this time I can't login using my private key. The server is ubuntu 11.04. And I have setup following ssh key directories. root@myserv: ls -la drwx------ ...
4
votes
3answers
5k views

Getting list of opened ssh connections by name

I have a config file in my .ssh dir that looks like this Host somehostA HostName 123.45.67.89 User katsh So from my local machine, i can ssh into multiple machines by their name in the config file, ...
3
votes
1answer
1k views

why are there so many instances of sshd running on my server?

8146 root 15 0 69432 3224 2500 S 1.3 1.2 0:00.04 sshd 1 root 15 ...
7
votes
3answers
569 views

Prevent SSH attacks

I'm trying to setup iptables rules to only allow 3 attempts by an IP per minute to connect to the servir via SSH, and drop all the connections after to prevent SSH attacks; but it seems i'm doing ...
0
votes
2answers
168 views

Why should I keep the root user if I'm not supposed to use it?

I'm on a fresh VPS with Ubuntu Server 12.04. I wanted to ask you the good practices to apply to enhance security over a stock Ubuntu-server. This is what I did up to now: I added Google Authenticator ...
-1
votes
2answers
69 views

Logging in using SSH keys

I created a non-root user, new_user, on a Red Hat Linux machine. I then logged in as new_user and created a private/public key pair. I've created /home/new_user/.ssh, and I've appended the public key ...
0
votes
2answers
145 views

ssh client disconnected, after relogin, how can I recontrol my process or program?

as show below: Step 1: SSH Login to remote host. Step 2: Use gdb debug proc_a. Step 3: Use gdb subcommand (gdb) shell vi tes.c, edit the file. Step 4: The ssh client have something unknown error ...
0
votes
1answer
1k views

SSH: Port Forwarding, Firewalls, & Plesk [closed]

I edited my SSH configuration to accept connections on Port 213, as it was one of the few ports that my work firewall allows through. I then restarted sshd and everything was going well. I tested ...
0
votes
1answer
1k views

Kicked out of SSH and Console immediately after login

I'm running Ubuntu 10.04 and I suddenly have this problem where I am kicked out immediately after logging in via ssh or in the console. Here's what it looks like at boot: Using IPI No-Shortcut mode ...
16
votes
2answers
7k views

What are the pros and cons of SSH and HTTP for a git server?

I want to setup a git server. I have found several how-to's, well detailed. Some describe the installation for a git-server accessible thru Ssh, while others, accessible thru HTTP. ( Others even ...
5
votes
2answers
392 views

Confusion over terminology SSH, Shell, Terminal, Command Prompt and Telnet

I don't usually use SSH if I can get away with it, but if I have to I do of course, and I've seemingly done this for years while still managing to remain slightly confused about these different terms ....
0
votes
2answers
5k views

Start and shutdown tomcat via ssh

Updated I find out that the path of jdk it using is wrong. eval: 1: /opt/Java/jdk1.6.0_25/jre/bin/java: not found the Java should be lower case java, how is that happen? When I run this script ...
3
votes
1answer
712 views

EC2 after restart can not access via ssh

I was connecting my ec2 instance via ssh well,after adding new EBS volume restarted the machine by 'sudo shutdown -r now' And after that I tried to access by using follwing command: ssh -v -i ...
1
vote
1answer
195 views

OpenVZ VMs redirect to main node?

I have a new fresh CentOs 6 machine and have SoulsVM and OpenVz installed on it. When I create VPS it came online with no problem. When I try to SSH to the VPS it gave me "Access Denied." I reset ...
2
votes
1answer
312 views

Disabling reverse dns lookup for ssh connections; Why not..?

Upon seeing some failure with initial ssh connections timing out; I narrowed it down to the reverse dns lookup on ssh. I've found many articles articulating how to disable the lookup; but none saying ...
5
votes
1answer
1k views

X11 Forwarding works on Windows with Xming and Putty, but not with ssh command line

I have a micro Amazon instance the I want to use for testing and everything is going fine until the title. If I set up all the info in PuTTy, open it up and run 'xclock', all runs perfectly and it ...
1
vote
2answers
3k views

2 factor authentication for Dovecot/Postfix / SSH / PAM

I'm wondering if there is some kine of 2 factor authentication module which supports PAM. My dovecot(PAM), postfix(SASL) and openssh authenticate via PAM to the system users. I would like to have it ...
2
votes
3answers
3k views

SSH tunnel doesn't work

I am trying to use my server as a "proxy" with ssh. However, setting up tunneling with ssh -D localhost:8000 user@myserver does not work. I tested this on various machines with ssh and putty - It ...
1
vote
1answer
566 views

Cannot login as root to centos server

I used to login as ssh root@servip with a password authentication into my CentOS 6 server. I am not sure if what I have done has caused this, but while trying to get over my problem of accessing ...
0
votes
4answers
299 views

How can I send single file to multiple remote sites at the same time?

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?