2
votes
2answers
22 views

Reuse remote ssh connections and reduce command/session logging verbosity?

I have a number of systems that rely on application-level mirroring to a secondary server. The secondary server pulls data by means of a series of remote SSH commands executed on the primary. The ...
0
votes
2answers
31 views

how to enable scp only on public interface and ssh only in internal interface

Server A has a public ip and a private ip, each on another vlan and thus on another virtual interface. How can I enable scp only on the public ip and ssh only on the private IP, for all users. Kind ...
0
votes
1answer
39 views

SSH connection timing out on certain clients only

I have a server that has around 100 SSH tunnel connections active from client servers across Canada and the US. We use the same device that runs a custom build of Ubuntu and load that on each client ...
5
votes
1answer
96 views

Understanding service --status-all output

I am trying to understand the output of the service --status-all command on Ubuntu 13.10, since the man page doesn't explain it. For example: [ + ] rsyslog [ - ] sendmail [ ? ] sendsigs [ + ] ...
0
votes
2answers
33 views

Where is the configuration that instructs linux 14.04 to enter single user mode?

I have an EC2 Instance of Ubuntu 14.04 Fails to restart after stop/restart. It was upgraded from 13.x and apparently AWS has the web ui setup to send a 'reboot now' command which instructs 14.04 to ...
0
votes
1answer
30 views

How to prevent syslog message popping in a ssh session without affect other sessions?

i have a machine(RHEL 5.2) which receives syslog message from remote machines. And now it keeps popping message from remote machine in a ssh shell, which is annoying when i want to do something on it. ...
0
votes
0answers
32 views

Distributing Master node ssh key

For the master node to passwordless-ly ssh into the slaves, the master needs to distribute its ssh key to the slaves. Copying key using ssh-copy-id asks for the user password. If there are hundreds of ...
0
votes
2answers
44 views

find and replace multiple files using a file as input to find and another to replace

I need to replace several chunks of text inside some php scripts... i have: find . -name 'products.php' -exec grep --silent 'TEXT_TO_FIND' {} \; -exec ls {} \; -exec sed -i ...
1
vote
2answers
50 views

Locked out of ssh, with no root access

So, I have configured my linux ubuntu 14.04 box for ssh on port 22 with root login via private / public key, no password login. I have iptables setup to block all incoming connections except for ...
0
votes
0answers
7 views

Hostname missing on Debian 7 Linode after logging in [duplicate]

Linux n00b here running Debian 7.3 on a Linode box. Please bear with me :) I haven't logged into my Linode in a while (3 months?) and when I logged in today via SSH I noticed the hostname is missing: ...
0
votes
0answers
14 views

Newly setup Centos 6 server, cloning from .GIT as user other than ROOT [duplicate]

Apologies for being so new and lost, i'm brand new to all of this and the more I search the more I feel I'm getting closer, but then realize i'm lost. I setup a CentOS 6 server on an Amazon E2 ...
15
votes
2answers
562 views

Does Rsync Allow Files To Be Synced Both Ways?

I have backed up a linux web server using rsync with cygwin. I now have a perfect copy of the server on my windows laptop. If i delete or modify a file on my laptop and run rsync again with cygwin ...
0
votes
3answers
70 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
0
votes
2answers
56 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 ...
6
votes
2answers
222 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
50 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
92 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 ...
1
vote
1answer
83 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
65 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
1answer
41 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 ...
0
votes
1answer
31 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
1answer
72 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
1answer
73 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 ...
1
vote
1answer
89 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
36 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
1answer
96 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 ...
4
votes
3answers
186 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
65 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 ...
2
votes
1answer
60 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 ...
0
votes
2answers
47 views

SSH connection falling down

I've set up a connection with autossh that creates some tunnels at system startup, but if I try to connect, after successful login (with RSA key) connection fall down, here a trace: debug1: ...
0
votes
1answer
122 views

Cant copy / paste large text over SSH

Running ssh from Windows -> linux and I cant paste text larger than ~20 chars. If I do it hangs the session. This is happening to others in the office using various methods to ssh. cygwin, mobaxterm ...
1
vote
1answer
122 views

Capturing output from a remotely executed command via SSH fails in CRON

This question is in a direct relation to this one: ssh fails to execute remote command when run from cron bash script - works from CLI I'm not able to comment on the accepted answer as I don't have ...
0
votes
0answers
196 views

SSH hangs after authentication

When logging in to one of my servers over ssh, it just hangs after authentication. This is the output on the client with -v. OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading ...
0
votes
1answer
974 views

SSH problems - server unexpectedly closed network connection

Since yesterday I have problems connecting to my server using SSH/SFTP. I can only connect after a restart of my server. When I try to make a connection after a couple of minutes, I can no longer make ...
3
votes
1answer
230 views

Public-Key -or- Password & Google Authenticator for SSH Login

I found an article (http://www.howtogeek.com/121650/how-to-secure-ssh-with-google-authenticators-two-factor-authentication/) that explains how to configure OpenSSH to ask for a Google Authenticator ...
2
votes
1answer
229 views

How to stop/prevent SSH bruteforce

I'm very new to network administration, so please regard that I'm not that experienced yet. I have a Ubuntu root server with plesk panel. Yesterday my friends and I noticed that the quality of ...
0
votes
1answer
38 views

No output from remote Debian server

When I login to my Debian server over SSH, it "freezes": in interactive mode, I don't get the prompt, if I say ssh server 'ls', nothing happens. I can, hovewer, use Bash built-ins, for example ssh ...
0
votes
0answers
535 views

freeSSHd SCP Linux to Windows Fails with “exec request failed on channel 0”

Windows has freeSSHd installed. Logging in with ssh from Ubuntu 14.04 LTS via SSH using Windows Login credentials works fine. Logging in with SFTP also works fine. This test is being run from a ...
0
votes
2answers
52 views

Tunneling SFTP to another computer

Run OpenSuse 13.1 and I have access to a server via SFTP: Question: Can a friend tunnel from another computer to mine so that he can use my SFTP client on my machine? Is this possible? In other ...
0
votes
1answer
114 views

Autossh ask for password when running with sudo (or from upstart)

I have an upstart job /etc/init/tunnel.conf: description "SSH Tunnel" start on (net-device-up IFACE=eth0) stop on runlevel[016] respawn exec autossh -nNT -o ServerAliveInterval=15 -R ...
1
vote
2answers
111 views

ssh-agent needs to start each time on my server

I have used this bitbucket tutorial for providing ssh access to the git repo: https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678 But now each time I want to use the git it says I ...
1
vote
1answer
75 views

Log onto Windows AD Domain via SSH using private key

I would like to log into a windows domain from a linux box using a private key in place of username/password. I am using FreeSSH on the windows box and have no problems using keys for local accounts. ...
0
votes
2answers
56 views

SSH config (~/.ssh/config) - advanced configuration

UPDATE: Just to confirm more about my setup in case it wasn't clear: No private keys are ever shared anywhere. (1) Human programmers using Mac each have one SSH key (in ~/.ssh/id_rsa) that they use ...
0
votes
0answers
625 views

rsync: getcwd(): No such file or directory (2)

I want to sync Server1 and Server2's logs to LogServer. For Server1: rsync -avz -e 'ssh -p 2188' user@server1:/usr/local/servers/logs/* /usr/local/logs/ This one works, but for Server2: rsync ...
1
vote
3answers
220 views

gitlab ssh access connection refused

I'm trying to access gitlab with my account in SSH with public key authentication. I have uploaded my public key and here is my SSH configuration: content of /home/$my_user/.ssh/config Host gitlab ...
-1
votes
1answer
242 views

SSH “Server refused our key” for all users except root user [closed]

I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " ...
0
votes
1answer
63 views

Is it possible to create ssh socks server with authentication required?

I was looking at this question while I was trying to find a good socks server for linux that would be easy to configure. The following command works fine: ssh -f -N -D 0.0.0.0:1080 localhost I ...
0
votes
0answers
18 views

How can I turn off OpenSSH's version response? [duplicate]

If I do a GET request to an ssh server, it responds with the exact version. curl http://ssh.somewhere.com:22 SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u1 curl: (56) Recv failure: Connection reset by peer ...
-5
votes
1answer
68 views

Does a tool like ansible make it possibly to get a secure server, without knowing a lot about security? [closed]

If I modified something like this into a server similar to the one described here with a minimal set of services (what you need for ssh, basically) would it be reasonably secure? sovereign: A set ...
0
votes
1answer
183 views

OpenSSH and heartbleed? [duplicate]

I just updated a Debian Wheezy server for the first time today, after the heartbleed bug. OpenSSL is not installed on this server, so I thought the server was not affected, and therefore it was put on ...