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

learn more… | top users | synonyms (2)

0
votes
2answers
52 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
49 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
76 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
44 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
41 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
37 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
50 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
35 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
72 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
88 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 auth set up to login from client to server. When I run the server like: sudo `which sshd` -d Everything works as expected; I don't ...
0
votes
1answer
30 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
24 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
37 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
52 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
65 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
65 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
25 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
30 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
68 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
39 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
9 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
321 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 ...
0
votes
0answers
9 views

Equivalent of scp -l bandwidth_cap for .ssh/config? [migrated]

Short form: You can limit the bandwidth the scp uses with the -l switch, you pass a number that's in kbits/sec. I'd rather set this in my .ssh/config file for certain names machines. What's the ...
1
vote
1answer
21 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
74 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
41 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
19 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
83 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
33 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
45 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
202 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
68 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
27 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 ...
2
votes
1answer
156 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
42 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
46 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
56 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
84 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
181 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
179 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
62 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 ...
-1
votes
1answer
22 views

How can i use my local mysqldump through ssh tunnel

I would like to dump a mysql-database with mysqldump. But: This command isn't installed on the remote server. It is possible to use my local mysqldump command, to connect via an ssh tunnel to achieve ...
0
votes
1answer
106 views

SSH is not working .. Password promt is not coming

I am not able to SSH into my ubuntu server since yesterday. I am not using any keyless or public key method.. Its simple SSH with username and password everytime.. However I can do a VNC session ...
0
votes
0answers
17 views

SSH Colors Enabled, # Showing up in odd place

I enabled colors on my Debian server for SSH, without colors enabled i get this prompt root@server01:~# When i enable colors the colors are there but the # gets pushed way out as such ...
0
votes
1answer
41 views

How to set up Git on remote instance using keys from local machine?

I have a setup where I can ssh into my remote server (ie a Google Compute instance) from my local machine. I used to be able to clone, push, and pull from a repository on my remote instance without ...
0
votes
1answer
63 views

Can access server using both LAN & WAN IP from LAN, but no access outside of LAN

I have a server running ArchLinux at home called SERVER. Currently, I can gain access to this machine via SSH by issuing ssh user@SERVER from another computer that is connected on the same LAN. It ...
0
votes
0answers
14 views

Different behaviour on ssh with public key with similar setup

I would like to understand what is going on in my network. This is the scenario: There are three machines A, B and C with same user u for them all The content of u@a:~/.ssh/id_rsa.pub is copied in ...
2
votes
1answer
57 views

SSH Mounted Drive, home directory for websites changed

A week or so ago I had a new hard drive added onto my dedicated server for additional storage because I am placing a video site up on the server and will be storing a lot of videos. So I wanted to ...
1
vote
2answers
323 views

Launch firefox on remote server using SSH with a command line parameter

Is there a way to launch firefox on a remote server using SSH this way ? : ssh username@ip_address [command line] When I run: ssh username@ip_address -Y (or -X) firefox (I want to launch firefox ...
0
votes
0answers
12 views

TCP Multipath using several SOCKS Proxys as uplink

I would like to set up a server, that uses several SOCKS Proxys as uplink to the internet. All Multipath setups I found were about using "normal" uplink like LAN, Cable or DSL, but none that uses ...