1
vote
2answers
49 views

FTP, SSH and other access not reliable on home server

I am trying to understand why my connections to my server via ssh or ftp are spotty and will sometimes disconnect. The website itself that is currently running on the server has no issues whatsoever. ...
0
votes
1answer
89 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 ...
1
vote
1answer
39 views

Relax ssh rate-limit rules for certain ip addresses

We've written some tools to automate common development tasks. One tool, for example, ensures all our git repositories are up-to-date. For this to work, our tool needs to connect to our git server and ...
0
votes
1answer
112 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 ...
0
votes
2answers
55 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
85 views

Cannot connect SFTP with FileZilla

I have OpenStack Havana installed in Ubuntu 12.04.4 Server. I have successfully launched a Ubuntu Cloud image's instance in OpenStack. I can successfully ping/SSH to my instance via my OpenStack's ...
0
votes
0answers
9 views

ubuntu 12.04 - sftp umask with usergroups_enab [duplicate]

In /etc/login.defs I have UMASK 022 and USERGROUPS_ENAB yes This works as expected when logging in through ssh as a user in a single-user group (eg, admin:admin). I end up with 0002 as the umask. ...
0
votes
1answer
226 views

Locked myself out of SSH with UFW

I had my server set up to accept SSH connections on port 21966, I followed some steps to configure ufw however it has now locked me out of all SSH access on any port! I've been able to boot my ...
2
votes
1answer
164 views

Azure Linux VM Captured, Built from image. Different password or key for new VM: permission denied?

I followed How to Capture an Image of a Virtual Machine Running Linux to capture a VM image, after installing the packages I wanted on top of Ubuntu 12.04 LTS. I turned off the machine following a ...
0
votes
6answers
118 views

How to run an application continuously in server [closed]

I am using Ubuntu 12.04 server edition. I have access to the server via ssh. My question is how can I run a program through SSH such that it wont be get closed even if I disconnect the ssh. It has to ...
1
vote
2answers
68 views

Cant access ssh on first attempt

I've suddenly started having problems connecting to my ubuntu 12.04 server through ssh. When i try to login with ssh user@host nothing happends. If i open up another terminal while the first is still ...
2
votes
1answer
115 views

SSH Hardening not working as expected

I am trying to do ssh hardening on my server but looks like it just blocks everyone. I checked auth.log on target server and it just says: "Connection closed by x.x.x.x [preauth]" Let me paste the ...
0
votes
1answer
590 views

SFTP does not work for one user, SSH does work

I can login with password via root and user1 I can login with Filezilla via root but not user1 Here is end of Filezilla log Trace: Initialised HMAC-SHA1 server->client MAC algorithm Command: ...
1
vote
1answer
234 views

ssh git commands authenticating with authorized_keys

I have an amazon ec2 cloud server running Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-52-virtual x86_64). I have gitlab installed using bitnami image. SSH cloning of repos does not work. I can not log in as ...
0
votes
2answers
201 views

restrict ssh, sftp access on ubuntu 12.04 through iptables or /etc/hosts.allow

I´ve tried to get into restricting access to a ubuntu server but i´m still unsure which way to go. the situation: We want to restrict access for ssh, and sftp to 4 clients with no static ip on a ...
1
vote
1answer
180 views

SSH doesn't work with my key for an user but works for another

Server (Ubuntu): ~/.ssh/authorized_keys file (on issue-user): just one public key on one single line. No extra lines! No comments! correct user/group owner 644 rights Local Machine (Windows 7): ...
-2
votes
3answers
332 views

How can I scp files over ssh OVER through an intermediate server that does not allow TCP tunneling? [closed]

I'm ssh'ing to my university network, and from there I can ssh to my server. How can I transfer files from my local machine to my server? I tried tunneling but it seems it's not allowed, I get: Note ...
0
votes
4answers
736 views

Can't login via ssh after upgrading to Ubuntu 12.10

I have an Ubuntu 12.04LTS instance on AWS EC2 and I upgraded it to 12.10 following the instructions at https://help.ubuntu.com/community/QuantalUpgrades. After upgrading I can no longer ssh into my ...
0
votes
1answer
95 views

How to create a init.d script for openssh-server which was compiled and installed from source using configure + make + make install?

I have installed openssh-server in my Ubuntu PC using apt-get install openssh-server. The version is 5.9. Now, I would like to compile and install openssh-server version 6.2 from source codes. I have ...
1
vote
1answer
115 views

Shell script error on filename with spaces

I have a bash script that search for every static file located under my server root and stores a gzipped version next to each file. I got it from ...
-2
votes
1answer
60 views

How to run a command when ssh connection closes

I know that I can run additional scripts on login if I place them in /etc/ssh/sshrc is there a pendant for logout/ disconnect? running openssh
1
vote
2answers
69 views

Why cant I ssh into my ubuntu server? (ssh_exchange_identification error) [duplicate]

I am trying to ssh into my ubuntu server (which I have done many times before) and I get the error: ssh_exchange_identification: Connection closed by remote host ssh -vvv shows the following: ...
0
votes
1answer
93 views

ssh to Amazon EC2 Ubuntu server behind firewall

I ssh to an Amazon EC2 server and have just enabled the ufw firewall. This terminated my connection and now I can't ssh back in. I assume the firewall is preventing access. I tried rebooting but no ...
0
votes
0answers
139 views

Cannot view User Accounts on Linux Ubuntu 12.04

I am working on a fresh install of Linux Ubuntu 12.04 and for some reason I cannot seem to access the User Accounts. Through terminal I am able to establish ssh connection to the root account and to ...
0
votes
2answers
76 views

Allow developers to deploy to server but not login (ssh) to server

This might be impossible but this is what I would like: Allow the developer to login to server via Capistrano so that he can deploy changes. e.g. cap deploy Do not allow the developer to login to ...
1
vote
2answers
306 views

Is there any reason to use fail2ban with SSH password logins disabled?

I am setting up an Ubuntu server hosted by Linode. I am stepping through their security guide and they recommend installing fail2ban after disabling password based SSH logins. I don't see the point ...
0
votes
0answers
173 views

SSH won't work after associating Elastic IP on Amazon Ubuntu 12.04 32 bit micro instance

This morning my EC2 and elastic IP were working fine. All of a sudden, all hell broke loose and my EC2 won't access through my elastic IP anymore. When I did a ssh -vvv I get debug1: Connecting ...
1
vote
1answer
512 views

I can SSH but can't SFTP

I am dumfounded at this issue. Brand new Ubuntu 12.04 Server install, I can SSH in, but can't use SFTP (Using Filezilla). It seems to authenticate fine .. But then it errors: The error is: Error: ...
0
votes
1answer
298 views

Cannot Traceroute/ssh outside network

My server cannot connect to ANYTHING EXTERNAL via ssh. I also cannot traceroute to any of them. Machines on the same network work fine via SSH and traceroute. This machine is connected to the ...
0
votes
2answers
2k views

SSH to bitbucket returing Permission Denied (publickey)

So I am trying to clone a repo to a directory on my Ubuntu server but I keep getting a Permission Denied (publickey) error. This is very weird because my output for ssh -T git@bitbucket.org shows ...
2
votes
1answer
1k views

solved - SSH instant logout after ssh login kerberos / winbind

I set up a ubuntu server which is authenticating against the active directory of our W2k8 Domain. Everything went well and I see all the users in getent passwd, and wbinfo. I want to be able to use ...
3
votes
1answer
1k views

Trying to set up SFTP only in a chroot jail for one user

Hopefully you guys can help and see if I've done something weird here, I'm trying to log in with a user I set up, FileZilla shows me: Command: open "///@///" Command: Pass: ******** Status: ...
2
votes
0answers
183 views

KVM on Ubuntu: Port forwarding to a guest VM

I installed kvm and set several guests on a server using vmbuilder. Here is the following configuration : server host1 (xxx.xxx.xxx.xxx) -> guest vm1 (192.168.0.3) ...
0
votes
2answers
645 views

SSH broken after homedir permissions and hostname change on EC2-hosted Ubuntu

I changed my instance's hostname using the hostname utility and then set it in /etc/hostname so that the new name survives reboot. My main motivation was for differentiating between instances at the ...
0
votes
1answer
166 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 ...
0
votes
1answer
538 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 ...
1
vote
1answer
393 views

External SSH Connection Fails

I'm playing sysadmin for a day and standing up a new Ubuntu 12.04 box. The box has 2 NICs - 1 for internal connections, one for external. I'm able to ssh into the box using the internal ip (ssh ...