Secure Shell (SSH) is a protocol primarily for encrypted shell connections.

learn more… | top users | synonyms (2)

0
votes
2answers
77 views

Forward SSH request to an External Server to an Internal Server

I have a VM config currently where I have 1 external IP pointing to a VM with an Nginx HTTP Reverse proxy serving HTTP Web Pages from several internal VMs without external IPs. I need a similar setup ...
0
votes
1answer
42 views

Allow ssh access to git pull on remote machine

We have a server with some of our git repositories on and I would like to be able to clone one to our webserver (which runs debian). I ran ssh-keygen on the webserver and copied the public key into ...
6
votes
2answers
255 views

Manage SSH Users with MySQL backend

is there a possibility to use a (mysql) Database to manage SSH login credentials instead of /etc/passwd ? I know I could use ldap but I only want simple user management and ldap seems a little bit ...
0
votes
3answers
55 views

Is there a command for allowusers in sshd?

Is there a command to allow / deny users in OpenSSH server (sshd)? I know you can add AllowUser / DenyUser in the sshd_config and reload the server but I'm trying to come up with a generic way that ...
-3
votes
1answer
219 views

SSH - Connection refused [closed]

I have setup on a server VMware ESXi 5.5.0. I have add the operating system Oracle Linux 5 I'm trying to setup ssh for local computers that runs on Ubuntu. But I get the error Connection refused. I ...
2
votes
0answers
241 views

Running Ansible locally inside a Dockerfile SSH authentication issue

I'm unable to run my ansible playbook inside a Dockerfile due to authentication issues. Here's my dockerfile: FROM ubuntu:14.04 MAINTAINER hyperfocus # Update system and install ansible RUN apt-get ...
1
vote
1answer
128 views

Exit code 126 from SFTP

I've been notified that SFTP access is no longer working on an Amazon EC2 server running Ubuntu. I had done some work creating SFTP access for other users on this server. The limited user access is ...
-1
votes
1answer
32 views

Connect to Amazon EC2 not using SSH?

Is it possible to connect to EC2 instance directly? This is possible on Rackspace using a java servlet inside your browser where you get a "remote monitor window" (not SSH but a local login screen). I ...
0
votes
1answer
39 views

Amazon Elastic IPs: SSH timeout

Amazon EC2 - what I did: I created a free Ubuntu instance. I attached a new private IP address under Network Interfaces. I created 2 elastic IPs, attached to the default and new private IP address. ...
2
votes
4answers
133 views

Can one server see traffic to another server inside a VLAN?

Scenario: I have a rack of servers that all belong to the same private VLAN. I transfer data from Server 1 to Server 2. Is it possible for any of the other servers to sniff out the data sent or is ...
0
votes
2answers
55 views

How do I connect to Windows Desktops from a Linux Server? [closed]

I have system A on a network connected to the Internet, another system B on a different place (different location also). I have a VPS server with SSH connectivity. Both A and B are Windows, and the ...
2
votes
2answers
53 views

How to keep script from swallowing all of stdin?

I have a script that reads from a pipe in a loop and runs an expect script and a normal shell script in the loop. Both scripts run ssh to another server to grab a piece of data. For example: cat ...
1
vote
1answer
97 views

Securely copying files between two remote servers

I am trying to copy (scp) files from one remote server to another remote server. The remote servers are running Ubuntu and are using SSH authentication. The servers synchronise with LDAP, and all ...
0
votes
0answers
99 views

Multiple Reverse SSH Tunnels using Single Port

I am able to accept reverse SSH connections from multiple remote systems on a single server using a port for each connection: Remote A: ssh -fN -R5000:localhost:22 user@server-ip -p22 Remote B: ssh ...
0
votes
0answers
116 views

How do I install a bitnami LAMP module by SSH command line?

This is a pretty straightforward question that I cannot seem to find an answer for. I already have a running Bitnami LAMP stack on an Amazon EC2 instance. Where do put the installer ...
0
votes
1answer
47 views

ssh session dies after three hours on inactivity

I usually leave my PuTTY terminal window open during the day and lock the screen when I go to lunch or leave to go offsite. Lately though when I come back, my ssh session had died. Even though I use ...
-1
votes
2answers
104 views

Chrooted ssh user cannot ssh into server : broken pipe

I just tried the following to add a new user, chroot the user and give him access to the folder /home/me/public_html via sftp and ssh : ##the following command are done by root or a sudo user useradd ...
3
votes
1answer
43 views

SSH authentication mode selection

I am trying to figure out the SSH mechanism used while I try to ssh onto a production host. I see that the SSH client can choose among the available modes. But I'm not sure which mode is chosen and ...
0
votes
2answers
204 views

Script SSH to router and “enable” and run commands

I have a script that will ssh to a list of routers and run commands from commands.txt. I want to enable after I connect to the router through ssh before I execute the rest of my commands in ...
2
votes
1answer
114 views

ssh shared key authentication asks for password, unless sshd runs with -d option

My client is Ubuntu, and the server is CentOS. I have shared key authentication set up to login from client to server. When I run the server like: sudo `which sshd` -d Everything works as ...
0
votes
1answer
36 views

Cannot remote copy file via tunnel [closed]

I'm trying to get a file from server1 (localhost) with scp. I am accessing server1 from the gateway server2 (that is the only one accessible from the internet). I am able to open a ssh connection by ...
0
votes
1answer
42 views

How do I force sftp user to start in their home directory

I am using RHEL6 and I set up an sftp server through sshd. Here is the relevant sshd config: Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp X11Forwarding no ...
2
votes
2answers
44 views

Puppet sshkey collection for non-puppet systems

On my systems I use the exported resources, and resource collection to manage the /etc/ssh/known_hosts ref of my systems. This works great for all my SSH hosts that are managed via puppet. But I ...
2
votes
1answer
130 views

How do you configure X11 forwarding over SSH on AIX?

Here is what I've tried. I've edited /etc/ssh/sshd_config on the remote AIX system X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes as well as set $DISPLAY DISPLAY=localhost:10.0 export ...
1
vote
2answers
82 views

scp with tar pipe and continue proceeding if shell is closed

I am trying to send my files to another server with this command: tar zcvf - /var/www/html | ssh root@x.x.x.x "cat > /backup.tar.gz" And I want to send it to background with this commands ...
1
vote
1answer
105 views

Make sshd listen to a specific interface

On my machine I'm using OpenVPN which use the tun0 interface. I want sshd to listen only on this interface. I know, I can specify the IP address to listen to in /etc/ssh/sshd_config with a ...
2
votes
1answer
45 views

Encrypted User Directory on FreeBSD?

I'm running FreeBSD and I'd like to have user's files stored encrypted using his/her password, and have seamless SSH access to those files as well (provided that the user always uses password-based ...
0
votes
1answer
41 views

TCP RST from telnet/ssh daemons when connecting from openvpn

I have LAN_1 and LAN_2 interconnected with an openvpn tunnel terminated ona pair of SOHO routers running busybox. One of the vpn purpose is to allow clients on both LAN_1 and LAN_2, to administer the ...
1
vote
1answer
104 views

ssh won't start >>/dev/null 2>>/dev/null

I am running a CentOS 6 server and I have issues with SSH. My SSH service won't start anymore. I do only have access to some tools using Direct Admin. At first I couldn't connect to SSH it gave me ...
0
votes
1answer
65 views

Please help me log on to Azure server (simple ssh doesn't work)

I have been trying to log on to my Azure server's Virtual Machine that's running on Ubuntu 12.04 LTS for hours. I would appreciate it a lot if someone could help me. I generated new ssh keys ...
0
votes
0answers
13 views

SSHFS LOOKUP() errors

I'm newer in using sshfs. I realize that when I edit a file in sshfs mount point, the save command is very slow. I did put the debug option "-o debug", and this erros are showed at save command: ...
1
vote
1answer
1k views

Cannot log in to Ubuntu 14.04 LTS server after enabling root login for SSH via PermitRootLogin

When trying to log in as root (with public key) to an Ubuntu 14.04 LTS box, the OpenSSH server will just say Server refused public-key signature despite accepting key! I have enabled root login by ...
1
vote
1answer
27 views

skip 2 steps verification when there is ssh key Debian [closed]

I had installed 2 steps verification on my server using this great manual: http://support.jpgottech.com/knowledgebase.php?article=72 Everything works great but I had encountered a small issue, I want ...
1
vote
1answer
114 views

How to configure SSH client timeout after network failure?

Let's say I connect from a client to a server via SSH, and in the middle of the session I pull the server's network cable. On the client, the ssh connection stays alive for around 15 minutes before ...
2
votes
1answer
45 views

rsync from remote ssh server with forwarded keys

Context I am writing a synchronisation script to sync some web environments. Ex: Update integration from production (mostly to fetch new database rows and uploaded files) Some of my prerequisites ...
0
votes
1answer
28 views

Use Match in sshd_config to detect SCP connection

I use the following directive in sshd_config to detect if the user trying to login to a server is called developer, and issue a bash script to the user if that is the case: Match User developer ...
0
votes
2answers
188 views

Docker: ssh hangs after entering password

My problem is almost exactly the same as the following link, except my ssh server is in a docker container. My Dockerfile is very simple. FROM ubuntu:12.04 ENV DEBIAN_FRONTEND noninteractive RUN ...
-2
votes
1answer
97 views

The authenticity of host “host” can't be established [closed]

I'm running a web app on a Linux server which connects to other servers. When I run the project on my Play framework on loclhost it runs fluently. When I run it on my Linux server I get the above ...
0
votes
2answers
61 views

Looking for a way to get team public keys to EC2 instance autonomously

I am administering a single (now) ec2 instance which will provide some tools to our users. I am using Ansible to manage it. I have it set to create users using a mix of a Cron-job and Ansible (by ...
1
vote
3answers
239 views

Change ssh port for specific ip address

I get the trouble with putty, so I prefer using shell( linux) to access server via ssh, my ip address has alter port for ssh is 6091, so is there anyway to access server via ssh by command ssh ...
0
votes
1answer
155 views

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure ...
-2
votes
1answer
33 views

How do I chain an svn checkout over ssh? [closed]

Say I have an svn host on a private network that we will call my_work_svn. I cannot access this from externally but I can access it from a machine which we will call my_work_ssh (and assume I am ...
3
votes
1answer
265 views

Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?

When I import my OpenSSH public key into AWS EC2's keyring the fingerprint that AWS shows doesn't match what I see from: ssh-keygen -l -f my_key It is a different length and has different bytes. ...
0
votes
3answers
57 views

Unable to copy multiple files from remote sftp via ssh

I am trying to copy multiple (1000s) .JPG files from remote SFTP server to current server using mget command but it is not working. Here is the command that I used sftp username@sftp.domain.com ...
0
votes
1answer
66 views

Control outgoing interface linux SSH tunnel [duplicate]

I am using a simple socks proxy in my browser. I create the socks using ssh -D myremote.server Now all requests go via the primary IP address of myremote.server. Can I change this behaviour that ...
0
votes
1answer
57 views

Changed file and now I cannot access my SSH anymore

I was trying to get my dedicated server to have a couple of VPS's installed using this tutorial: http://linux-vserver.org/Installation_on_CentOS In the process I had to change a file: ...
0
votes
1answer
191 views

How can I manage AWS VPC ssh access accounts and keys across multiple instances?

I am setting up a standard AWS VPC structure: a public subnet, some private subnets, hosts on each, ELB, etc. Operational network access will be via either an ssh bastion host or an openvpn instance. ...
5
votes
1answer
196 views

SSH & SFTP: Should I assign one port to each user to facilitate bandwidth monitoring?

There is no easy way to track real-time per-user bandwidth usage for SSH and SFTP. I think assigning one port to each user may help, but I am wondering if my approach is workable. Use case Bob, ...
4
votes
3answers
206 views

IPtables locking down website allowing only SSH

I have written my first IPtables rule file to try and protect my server on all ports apart from SSH and the ports needed for the web. This is what I have come up with: i=/sbin/iptables # Flush all ...
1
vote
4answers
69 views

Securing debain with fail2ban or iptables

I'm looking to secure my server. Initially my first thought was to use iptables but then I also learnt about Fail2ban. I understand that Fail2ban is based on iptables, but it has the advantages of ...