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

learn more… | top users | synonyms (2)

2
votes
2answers
1k views

Correct options for keeping open a reverse SSH-tunnel using autossh

I have a set-up with a LDAP-sever (ldapserver) behind a strict firewall, and a webapplication running on a sever (appserver) outside that firewall that needs to authenticate using that LDAP-sever. I ...
1
vote
1answer
68 views

Fix slow SSH login due to reverse lookup without disabling UseDNS

Whenever I try to connect to my server from Azure VM it takes a lot of time due to failing reverse DNS lookup. I can disable lookups with UseDNS no and completely bypass the problem but this makes ...
0
votes
0answers
24 views
+50

Enable Jailshell Access from Command Line

There is an option in whm/cpanel to enable jailshell access for any hosting account. I want to know if it is possible to enable that option for any or all cpanel hosting accounts through command ...
0
votes
3answers
44 views

Disallow ssh keys without passphrase [duplicate]

I'm currently disabling password authentication on all my ssh servers (good idea of the day!). Some of my servers are shared with other people and I want to force them to use a ssh key with a ...
0
votes
2answers
17 views

ssh rsa or dsa connection fail T.T

first I don't speak english well yet, sorry. I have a problem with making an SSH connection. host : host01, host02 I made rsa key at host01 I send the key to host02. (ssh-copy-id and sftp. I ...
0
votes
1answer
1k views

Start and shutdown tomcat via ssh

Updated I find out that the path of jdk it using is wrong. eval: 1: /opt/Java/jdk1.6.0_25/jre/bin/java: not found the Java should be lower case java, how is that happen? When I run this script ...
0
votes
1answer
38 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 ...
0
votes
0answers
22 views

Did not receive identification string from xxx. With a very long interval [on hold]

I am not really sure what should I do in such situation. There are similar questions on this site like this, but I highly doubt that the answer there is applicable in my case. When I check ...
1
vote
2answers
128 views

Running an Ansible ping on a remote host fails with an unknown SSH error

I'm attempting to do an Ansible ping ansible all -m ping --ask-pass but I get SSH failures. As the debug log is rather extensive, I've trimmed down the below quote to where I think the problem ...
2
votes
2answers
35 views

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This ...
8
votes
2answers
437 views

SSH home directory per subdomain

I'm wondering if it is possible to set different home directories for the same ssh user for each subdomain. So let's say you login with ssh myuser@example.com your home directory will be: ...
2
votes
4answers
828 views

why use ssh tunneling for mysql server?

i've got ubuntu server acting as my lamp server for my php websites. mysql server is installed and opened for the localhost port. i have read about how to tunnel through ssh to my mysql server. but ...
1
vote
1answer
119 views
+50

Understand wireshark capture for ssh key exchange

I need to understand SSH key exchange, I have tried to read RFC document but it seems very difficult to understand so I have captured packets using wireshark ,I found various packets for ssh ...
1
vote
2answers
48 views

Is the SSH SFTP subsystem required on the managed nodes for Ansible to work?

When I run: ansible all -a "/bin/echo hello" -u myuser I get back: mydomain.myhost.com | FAILED => failed to open a SFTP connection (Channel closed.) The SFTP subsystem is disabled on the ...
0
votes
1answer
66 views

Number of SSH connections rises, and blocks data?

We have a client server setup, where the client sets up an SSH tunnel and uses port forwarding to send data to the server: ssh -N -L 5000:localhost:5500 user@serveraddress The normal number of SSH ...
1
vote
1answer
29 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 ...
0
votes
0answers
13 views

restrict shell commands for munin-node (netcat)

I've spent fair amount of day fiddling with this, and I'm about to give up (for today). I followed the instructions outlined here. All works at the moment. But to increase security I'd like to ...
0
votes
3answers
1k views

Linux SCP File transfer No space left on device?

I am trying to transfer one zip file from a linux based machine to a Windows based using SCP. I can go through the transfer ok but when it completes it says "No space left on device". The ...
2
votes
2answers
609 views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
2
votes
3answers
624 views

Regular Expression matching in ssh config

I have a bunch of servers with the names srv1.domain.com, srv2.domain.com, ..., srv50.domain.com I want to be able to connect to these servers by ssh srv1 I don't want to put 50 configuration ...
2
votes
3answers
1k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
1
vote
4answers
117 views

Temporarily ignore my `~/.ssh/known_hosts` file?

Is there a way to temporarily ignore my ~/.ssh/known_hostsfile? mbp:~ alexus$ ssh 10.52.11.171 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS ...
-3
votes
2answers
41 views

remote ssh not being allowed [on hold]

I had a 3rd party company harden our server. I now need my server host to update our ssl certificate but they cannot ssh in to do so. I will not even let them enter a username and password. Now ...
-2
votes
0answers
24 views

How do I setup an SSH to remote into ARM using ethernet port [on hold]

I am using the Xilinx Zynq 7000, on the TE0720-1 which is mounted on the TE0701-03 carrier board. I was wondering how do I set up an SSH to be able to remote into the ARM processor of the SoC to be ...
2
votes
1answer
1k views

gitolite mac don't add new user to authorized_keys

I installed gitolite and every thing works fine for me as admin. But when I'd like to add add a new user the new user can't connect to the server. After I looked into the file authorized_keys I saw ...
-1
votes
0answers
29 views

Lossing SSH connection after a number of days [on hold]

I have a server connected to a number of clients (all running on ubuntu). All the clients go through the same firewall etc. The problem i have is that once i get a client up and running, it suddenly ...
0
votes
1answer
929 views

Gitlab unable to push via ssh

I just installed gitlab server on CentOS 6, but not able to push any changes to the repo via ssh. A simple ssh works though ssh -T git@git.med-access.net Welcome to GitLab 5.2, Anonymous! But when ...
-1
votes
0answers
26 views

ssh first time and use custom .inputrc [on hold]

I need to log in to number of different containers and vm's all the time. As I use vim style .inputrc keybindings it's rather inconvenient to work there so first thing I do is: scp ...
1
vote
2answers
31 views

Remotely executed commands

It's possible to run "ssh user@server $command". This command does not write to bash history, as no shell is opened. I am wondering what signs are present on a server to show evidence of this command. ...
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. ...
1
vote
0answers
33 views

How to add two-factor authetntication to ssh?

I am trying to add 2FA to sshd using PAM from oathtool package. I want two ways to login to server: publickey and 2FA, or password and 2FA So far I managed to add 2FA to publickey authentication, ...
4
votes
1answer
45 views

SSH How do I ignore IdentityFile not found errors?

I currently have this in my .ssh/config file: Host * AskPassGUI no IdentityFile ~/.ssh/%r@%h IdentityFile ~/.ssh/%h IdentityFile ~/.ssh/id_dsa When I ssh into a host that I don't have a key file ...
0
votes
1answer
16 views

Apache2 reverse proxy connections staying persistent, filling ssh channels

I have a webserver (Amazon Linux EC2 instance running Apache2), let's call it "server A", on which I have set up reverse proxy using: # (All the appropriate modules are loaded higher up in the conf ...
0
votes
1answer
921 views

on SSH login, get message 'Could not chdir to home directory"

I am SSHing into a Mac OS X server running Tiger. When I log in I get put in the root directory and shown this message: Could not chdir to home directory : No such file or directory My $HOME ...
-3
votes
0answers
35 views

I Why use putty over windows cmd? [closed]

I am relatively new to the server world. When I began using VPS for my hosts I remember using Putty to ssh. But, now I use Conemu, and right now I even tried to log into my server using cmd. ssh ...
0
votes
3answers
2k views

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the ...
0
votes
2answers
206 views

Ssh autorestart remote tunnel reliability problems

I use a ssh tunnel to get some data from a distant server on an local newtork equipment with this : su -s /bin/bash -c "autossh -f -M 3333 -C -N -R 0.0.0.0:2222:y.y.y.y:1111 user@x.x.x.x-l k1001 -i ...
2
votes
1answer
35 views

How to reset self-signed keys that allow remote shell access to server in (Debian) linux

This is not something I've ever had to do before, and in light of the heartbleed bug I've been looking for a guide of how to do it properly, but all I can find are guides on how to log into a server ...
2
votes
1answer
43 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
2answers
26 views

Fixing “Could not chdir to home directory” on a homeless user

Basically I created a new sudoer without a home directory (adduser --no-create-home), but now, everytime I login with it I get prompted with a "Could not chdir to home directory: No such file or ...
58
votes
15answers
8k views

Hundreds of failed ssh logins

Every night I get hundreds, sometimes thousands, of failed ssh logins on my RedHat 4 server. For firewall reasons from remote sites, I need to run on the standard port. Is there anything I should be ...
2
votes
3answers
156 views

Cannot log in into a server by ssh connection

was connected to a server via ssh through port 22, and decided to kill all the users connected with the root user with the following command: pkill -9 -u root Now when I try to log in by ...
-1
votes
0answers
18 views

Strato VServer boot debugging [on hold]

I have a VServer by Strato and and suddenly I can not connect to it via ssh. I have a repair modus which if I turn on I can get in but anyway I have problem with ssh which say the key is not any more ...
3
votes
2answers
1k views

What does “Normal Shutdown, Thank you for playing [preauth]” In SSH logs mean?

Recently, My SSH log summaries for my Ubuntu 12.04 servers in Logwatch have started showing entries for "11: Normal Shutdown, Thank you for playing [preauth]" along with the "11: Bye Bye [preauth]" ...
1
vote
1answer
21 views

CentOS VPS : how to enable PermitRootLogin

While logged-in in to "root" via ssh I disabled PermitRootLogin setting in /etc/ssh/sshd_config file. It was advised to do so in the Cpanel's security adviser. Now I want to re-enable it for short ...
0
votes
5answers
7k views

SSH Connection Error : ssh_exchange_identification: read: Connection reset by peer

When I tried to connect to the server via SSH, I'm getting the following error, [root@oneeighty ~]# ssh -vvv -p 443 root@xxx.xxx.xxx OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: ...
3
votes
3answers
64 views

private key and public key in same directory causes ssh to fail

I have this really weird problem where I'm trying to connect using SSH to a remote server. I'm doing this from the command line, and both the private key and public key are located in my current ...
0
votes
1answer
34 views

Cannot find home directory on Linux Server

I have recently been granted access to a Linux server where I transferred some data. Now, for some reason, when I use WinSCP or any other program to connect to the server, instead of logging in ...
1
vote
1answer
26 views

SFTP password wrong from remote, but not from local

From my server, connecting to it via eth0 (not localhost), I can connect via SFTP: Apr 9 10:02:40 domain sshd[11526]: Accepted password for test from 1.x.x.x port 45335 ssh2 From a remote ...
-4
votes
1answer
29 views

How to add ssh public keys to server? [closed]

On all of my servers I added the below in .ssh git_id_rsa git_id_rsa.pub The public key was added to git hub. When I do a git clone I get the below: Permission denied (publickey). fatal: The ...