0
votes
1answer
27 views

Bash function hangs while command run perfectly without function

Following function hangs : ssh() { local RESULTS; RESULTS=$(ssh $USERNAME@$SERVER $SSH_COMMAND1); echo $RESULTS; } ssh; while if i run following commands they work fine : ...
-2
votes
1answer
44 views

Why I am not able to ssh as root?

root@web04:~# ssh -v -i.ssh/id_rsa root@11.11.11.4 OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 Warning: Identity file .ssh/id_rsa not accessible: No such file or directory. debug1: ...
3
votes
0answers
33 views

How do I use colors in the MOTD? [migrated]

I edited the default /etc/update-motd.d/00-header, adding some color to make it easier to read: printf "Welcome to \e[1;34m%s\e[0m \e[2m(%s %s %s)\e[0m\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" ...
1
vote
1answer
60 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 ...
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 ...
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 ...
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
1answer
44 views

SSH: how to display a given windows registry settings?

I have 2 virtual machines: VM 1: Windows XP VM 2: Ubuntu I access to Windows XP from Ubuntu using SSH. Is there a command I can run via SSH on Ubuntu to display the settings of a given Windonws ...
-1
votes
1answer
150 views

problems with putty while establishing ssh connection (Ubuntu Server)

since two days I am facing a really weird problem. I have receantly installed ubuntu server 14.04 LTS on a workstation. It has a fix IP address, which I can successfully ping from other computers in ...
1
vote
8answers
156 views

Can I (practically) block access to the SSH port to my country only?

I'm thinking that blocking access to the SSH port to allow for my country only is an obvious step, but I can't see a practical way to do this. I'm in the UK if it matters. I have full access to the ...
0
votes
1answer
43 views

No remote access to VPS container based on OpenVZ

Is there any chance to start ssh server when sysinit is turned to DEFAULT_RUNLEVEL=1? I have no remote access at the moment to my VPS server (based on OpenVZ container), but I can edit files and ...
0
votes
0answers
232 views

Trusty Tahr 14.04 update disables SSH

Ive recently been updating some servers on AWS from Ubuntu 12.04 LTS to 14.04. For some updates the SSH Daemon does not appear to start correctly after the final reboot. Although all other service ...
0
votes
1answer
168 views

SSH dont pick up changes in config file (Ubuntu 14.04)

I made a simple change to the SSHd config, but it never get picked up by the SSH Daemon. /etc/init.d/ssh restart no error is reported, any idea what it may be, or where i can look?
0
votes
2answers
54 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
29 views

Multiple upstreams with SSH from Bitbucket

I'm a bit new to deployment on servers, straight from Bitbucket to my VPS. One thing I couldn't figure out by myself or Google was the following: The first Bitbucket project I added with git ssh to ...
1
vote
2answers
56 views

How do I get AWS EC2 Ubuntu Server out of “Stopping” state?

I was unable to SSH or SFTP into my ubuntu server on EC2 this morning. It should be noted that SSH and SFTP were working fine up until now. To troubleshoot this I did the following: Logged into AWS ...
1
vote
1answer
52 views

Port based routing on ubuntu

My situation: A ubuntu server is part of a LAN with 2 gateways. The one offers high speed with high latency. The other low speed with low latency. My server usually uses GW1 for all traffic (because ...
4
votes
3answers
2k views

pam service(sshd) ignoring max retries

I have vps that I use to run a webserver on, it currently runs ubuntu server 12.04. Since a few weeks I keep getting a lot of errors in my ssh console. 2014 Apr 11 08:41:18 vps847 PAM service(sshd) ...
1
vote
1answer
66 views

how do deal with ssh config, and and passphrase

Why oh why am I being asked for a passphase when cloning from github?? git clone git@github.com:test/testchef.git Cloning into 'chef'... The authenticity of host 'github.com (xxx.xxx.xxx.xxx)' can't ...
0
votes
0answers
51 views

Ubuntu jail SSH & SFTP

So I'm having trouble with jailkit. SSH is working fantastically, SFTP not so much. zoneminder:x:1001:1002:,,,:/home/jail/./home/zoneminder:/usr/sbin/jk_chrootsh scott@neptune:/home/jail/home$ ls -l ...
-4
votes
2answers
119 views

Don't work ssh in a VM Centos [closed]

When I tried to connect my Ubuntu 13.10 to my VM Centos 6.5 using ssh appear the message "Connection refused" or "No route to host" even than I change the port, noting change. I need to use SSH, ...
0
votes
1answer
112 views

Saving SSL password for SVN in Ubuntu

I have tried to set up my SVN that way, that it saves my passwords, but for some reason it won't work. I am using a SSL certificate, for which I need to provide a password every time. I have tried ...
0
votes
0answers
74 views

Creating SFTP Users chrootdirectory /var/www

I am trying to create a new sftp user in Ubuntu 12.04.4 and am running into some trouble. After creating the first sftp user, I document the commands for later user and then delete the user and try ...
0
votes
1answer
374 views

How to free the (unused) memory?

Being a newbie in working with amazon ec2, I am trying to make my application work. I've connecting a few times by ssh, I've been running and stopping the server, sometimes the connection was lost, ...
0
votes
1answer
59 views

nginx and apache2 conflict - 403 Forbidden

I am running nginx on my server, and by mistake I stared apache2 on the server. After doing that I have a 403 Forbidden error on my home page. I killed apache2 process, but I still facing the same ...
0
votes
1answer
39 views

EC2 Ubuntu Instance Occasional Downtime

i'm having trouble with an EC2 instance experiencing a long period (several hours) of downtime every day instance type: t1.micro availability zone: ap-southeast-2a security groups: allow all ICMP, ...
2
votes
3answers
73 views

Disable system info at ssh login

How to disable system info at ssh login: login as: xyv Ubuntu 13.10 xyv@XXXXXXX's password: I think this is big problem. I would like to know system info only after password verification.
2
votes
5answers
119 views

SSH security while traveling

I'm new to the sysadmin/IT side of things, so I apologize if this may seem straightforward. I tried searching, but since SSH is such a broad field I didn't know what keywords or terminology to ...
0
votes
1answer
378 views

Installed libssh2-php but no ssh2 with php -m

I use php 5.5.3 on a Ubuntu 13.10 server and want to use ssh2 with php. So I installed libssh2-php with thi command: apt-get instal libssh2-php Installation runs without error. I got a ssh2.ini file ...
0
votes
1answer
233 views

synology nas DS213 J rsync files from ubuntu 12.04 server

I´ve a Synology DS213 J Nas System. I´m trying to sync folders from a ubuntu 12.04 webserver to the nas without password prompt. therefore I logged into the nas via terminal with root account. ...
0
votes
1answer
146 views

Permission denied (publickey) when attempting to connect Ubuntu EC2 instance via SSH

I'm attempting to connect to my EC2 Ubuntu instance via SSH with my private key. I had no problem connecting to the server before using the sudo reboot command. Now, I cannot connect to the instance ...
0
votes
3answers
91 views

Cant understand Rsync errors using ssh

I want to tryout Rsync for the first time but have run into difficulty. I want to transfer files from a remote server to my local server. I login to my local server and type: sudo rsync -avz ssh ...
3
votes
1answer
236 views

Upgrading OpenSSH on web server (Ubuntu) for PCI Compliance

I've been trying to upgrade OpenSSH for PCI compliance on our company's web server. I cannot for the life of me figure out how to do this though. I have attempted the following commands via SSH ...
0
votes
2answers
121 views

SSH to VM rejecting password, works from virt-manager console

First of all, I'm sorry if there is a duplicate post somewhere. I searched for a while but none of the posts I found fixed my problem. It's fairly annoying. I created a new VM on our network and when ...
1
vote
1answer
81 views

no internet connection when in private network [closed]

I have an ubuntu server with a public IP, which I can reach with ssh from my local machine. However, when i put this server in a private network, I can no longer reach it with ssh from my local ...
1
vote
3answers
211 views

Reverse SSH Tunnel from windows to ubuntu to serve SQL server

just as the question says, I am currently trying to establish a reversed SSH connection from a Windows server behind a NAT to a hosted Ubuntu VPS. I'm pretty much a total beginner in Linux and SSH. ...
0
votes
1answer
56 views

My new ubuntu server has ssh_host_ecdsa_key and ssh_host_rsa_key files on it already, is this normal?

I have a new dedicated server, which I currently access with username and password over ssh. I have not yet set up an ssh key. I am just looking into it now. So this is a new server with ubuntu ...
0
votes
3answers
90 views

Setting up a linux web server, noobs basic operation

This question might be an odd one to ask. However I'm a noob on linux/networking and trying to set my old Ubuntu desktop running computer as a web server and place that in my server cabinet which will ...
2
votes
2answers
476 views

Filezilla/Puttygen doesn't recognize private key file

I have generated a key for an Ubuntu Virtual Machine running on Azure Cloud Services http://www.windowsazure.com/en-us/manage/linux/how-to-guides/ssh-into-linux/ openssl req -x509 -nodes -days 365 ...
1
vote
1answer
59 views

Setting up ufw without locking yourself out

Basically I want to protect a Ubuntu server with a firewall and sided for ufw. The big problem is that I don't have physical access to the server, neither is it possible to force a reboot or revert to ...
4
votes
1answer
238 views

Using gpg-agent over ssh

I'm having a problem using the gpg-agent over ssh via a single command line. Here is my configuration : Server A : triggering the command via ssh. ssh user@serverB "sudo -E /path/to/script.sh" ...
1
vote
1answer
40 views

ssh keys from mac to ubuntu 12 lts

I am attempting to set up a scenario in which I do not require to submit a password to ssh into an ubuntu machine from a mac. This is procedure i have been following: 1 - Open a terminal in your mac ...
2
votes
0answers
58 views

EC2 Ubuntu SSH Stops Working

I use about 15 EC2 instances to run some services. They are hosted on EC2 and run Ubuntu. Every once in a while the SSH stops working and the "Reachability Status" in the EC2 console shows that it is ...
2
votes
1answer
111 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 ...
1
vote
0answers
94 views

sshd running at 100%

I'm running an Ubuntu/WordPress server on Amazon EC2 which is experiencing problems every 24-48 hours: I get a CPU alarm from EC2, log into the server, and discover sshd is running at 99.9% CPU. This ...
0
votes
1answer
572 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
2answers
98 views

SSH: Unable to login with key after disabling password authentication

I have an ubuntu server is on Amazon EC2. Earlier I used to login with the original pem key file generated at instance launch time. ssh -i /path/to/key.pem ubuntu@instance-dns-name.com I tried to ...
0
votes
1answer
300 views

very slow connection to ssh server from client (but not other servers)

I have an Ubuntu 12.04 laptop that is taking so long to connect to various servers (in different data centres) that it seems like a bit of a lottery whether I'll actually get a connection. If I ...
1
vote
0answers
122 views

ssh hangs in Ubuntu MaaS heterogeneous cluster

I have the following issue when using ssh on my local network. I have setup a small cluster of Xeon machines using MAAS. I have installed Ubuntu Server 12.04 on all machines and configured local ...
0
votes
1answer
133 views

AWS EC2 instance not pingable or available in browser

I've seen this questions asked other places, but now I've run through every fix proposed in other questions so I'm re asking it here, in hopes that someone will have a different solution. Problem: I ...