Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

learn more… | top users | synonyms (2)

-2
votes
0answers
14 views

Alternative to SSH for remote port forwarding

Looking for an alternative to SSH port forwarding that doesn't use the encryption over head. I'm on a slow line with limited computing resources. I banged my head with socat, and it doesn't seem ...
-1
votes
1answer
34 views

Server under attack [on hold]

I've got a DigitalOcean Debian server. And since yesterday the CPU has been at 100%. I use it for testing at the moment. I'm a newb with servers, so really got no clue what to do. Can someone ...
0
votes
1answer
12 views

remote script execution from local script linux doesn't stop for remote script prompts

script abc.sh is on machine M1 and xyz.sh is on machine M2 script abc.sh: #!/bin/bash ssh -l user1 host.com ./xyz.sh -b1 arg1 -b2 arg2 script xyz has certain user prompts like pwd etc When I ...
0
votes
0answers
12 views

Why is my sshd looking for a wrong kvno in keytab?

My FreeBSD box is using Heimdal Kerberos-implementation. It is registered with the corporate AD, its msDS-KeyVersionNumber-attribute is set to 2, and its keytab has the following entries: FILE:/etc/...
-4
votes
0answers
29 views

SSH keys rotation on multiple servers [on hold]

I am wondering how to solve over 100 SSH keys rotation on multiple servers, since I would like to keep this task as simple and as short as possible. I was thinking about using Ansible to automate ...
2
votes
2answers
25 views

What are the disadvantages when using two-factor authentication on SSH like Authy-SSH?

I'm considering to setup Two Factor Authentication on my SSH accounts (OpenSSH, Ubuntu). I was looking into Authy-SSH but I'm wondering what the possible disadvantages are? Also, can I lock myself ...
0
votes
0answers
21 views

Install Bash + openSSH on Windows Server 2012

I had to create a Virtual Machine with Windows Server 2012. Now I want to connect to it via OpenSSH and Bash, installing OpenSSH is successful, however when I connect to the server via ssh ...
0
votes
0answers
7 views

Is it possible to change ownership of root directory for NFS mountpoint? [duplicate]

I have an NFS share and OpenSSH server. What I'm trying to achieve is to jail SSH users in the mountpoint for the share. The problem is that OpenSSH server requires all directories within a path of ...
0
votes
0answers
9 views

kerberos - active directory domain trust - SSO only working for linux machines

I have an Active Directory Server (2008r2) and a MIT Kerberos Server. Between the realms "AD.EXAMPLE.COM" and "INTERN.EXAMPLE.COM" is a two-way transitive trust, set up on the windows-side with the ...
0
votes
1answer
19 views

SSH: hangs after “connection established”

I have an AWS EC2 instance to which I can't connect through one of Ubuntu servers. However, I can connect to the AWS instance through any machine(with and without private SSH key), but Ubuntu server ...
0
votes
0answers
25 views

gitlab asks password when cloning with ssh

I'm very desperate at this point, spend way to much time on this. I have a gitlab running on digital ocean with the one click install. Everything runs great.. I can clone a repo with ssh on my laptop ...
-1
votes
0answers
17 views

How to backup automatically File and Database from cpanel to Local Computer? [on hold]

Recently I losed my all files and database due to my server provider terminated my server due to heavy bandwidth use, I dont have backup for recent edited file and database and i dont have time to ...
1
vote
0answers
12 views

xdebug remote centos host from mac

I have a server running CentOS7, PHP7.0.7 with php-fpm, and SELinux. I am trying to debug a PHP script running on that server. And I have a Mac machine that runs PHPstorm where I intend to do the ...
-1
votes
3answers
43 views

Bad ssh config on remote server. Cannot login in

I accidently changed ssh_config instead of sshd_config on a remote debian machine. Whenever i try to loging, i get /etc/ssh/ssh_config: line 55: Bad configuration option: permitrootlogin /...
0
votes
1answer
21 views

How to limit access from host to docker container

I am new to docker. I setup a container which run a web application at port 3333. it works well. By default we could access container bash from host without password. I share the host machine with ...
0
votes
0answers
26 views

Home Directory Permissions - Google Cloud Compute

I've setup a Linux (Centos) instance on Google Cloud Compute, I've also setup SSH as described here - https://cloud.google.com/compute/docs/instances/connecting-to-instance. I and can now connect ...
0
votes
0answers
12 views

Running socket.io server on shared hosting with ssh access

I have a VPS server with DirectAdmin installed, hostname would be hostname.com for example. I created an account with the domain socket.hostname.com . Now I want to create a running node.js server ...
0
votes
0answers
37 views

What is the correct way to configure match rules in sshd_config?

I'm configuring Match rules in /etc/ssh/sshd_config . Whenever I add more than 1 match rule and after restarting SSH ofcourse, I'm getting locked outside of the machine with the following error: [...
0
votes
1answer
47 views

Stop and prevent brute force attacks on Ubuntu 14.04

I've currently 3 servers with SSH service being attacked by brute force. The attack is from multiple sources or one who's changing his IP with each attempt performed. I need help to stop current ...
1
vote
1answer
25 views

Why is module os_keypair not returning private_key?

I am deploying to Rackspace Cloud with the OpenStack ansible module. I am facing an issue with the SSH keypair creation. It creates the public key, and installs it on the host. However I can see that ...
0
votes
1answer
13 views

Can I establish an SSH tunnel to elasticbeanstalk instance?

It is possible to SSH to elasticbeanstalk with eb ssh <instance>, but it doesn't seem to be possible to create a tunnel with this executable. How can I do it, if at all?
-1
votes
1answer
14 views

rsync to remote ssh or to local iscsi

I'm curious of anyone knows a link to or can elaborate upon this design question: I have a server that I would like to make a backup copy of data from. I have a second server that is iscsi-enabled. ...
0
votes
0answers
9 views

OpenSSH won't resolve %temp% environment variable in commands and batch files

I installed OpenSSH on my Windows Server 2012 R2 system. So far everything works except for resolving the %temp% environment variable: In my PuTTy SSH client I can resolve %systemroot% but not %...
0
votes
1answer
32 views

SSH connection is slow and buggy when connected by IPv6

I noticed that my SSH session is not usable (random connection errors, hugh delay, etc.) when I'm connected by IPv6. I'm not connecting to my server by IPv4/IPv6 addresses directly. I use my domain ...
1
vote
0answers
23 views

PAM+LDAP no longer working after SLES 10.4->11.4 Upgrade

authentication via LDAP has ceased functioning after we upgraded to SLES 11.4 via recommended method (boot from DVD). Unfortunately with SLES I cannot give you any meaningful log output since neither ...
0
votes
1answer
37 views

Server allows logging in without supplying a password and no ssh keys were exchanged, what could be the reason?

I'm trying to secure an outbound server with Google 2FA solution. For the time being, I'm first configuring everything on a local Vagrant machine and once everything works as intended I'll run it as ...
0
votes
0answers
11 views

X11 Forwarding using Attachmate Reflection

I've been using Putty for my SSH connections. I've been able to use XMing and X11 forwarding without a problem. I have to switch to Attachmate Reflection for work. I connect to the same machine and ...
0
votes
0answers
15 views

libnss-ldapd and Onelogin vLDAP

I'm trying to get Onelogin's new vLDAP service working with libnss-ldapd on an Ubuntu server (14.04). It looks like vLDAP uses authenticated bind per user. I've tried lots of different configurations ...
0
votes
1answer
22 views

How can I use port tunneling to connect to a private database instance through a network bastion?

I have a network bastion which is publicly accessible at example.compute-1.amazonaws.com and a private postgres database instance at postgres.example.us-east-1.rds.amazonaws.com:5432 I can ssh into ...
0
votes
1answer
22 views

Forward incoming SSH connection if user = git?

I have a CentOS 7 minimal with Firewalld installed and it serves as the firewall / router for the company. Inside the network, we have a git server, let's name it: gitlab-server. I wish to make it ...
0
votes
3answers
86 views

Passwordless root SSH on CentOS 6 with public key

I am trying to create a "passwordless" setup so that the remote server is more secure without password + I can automate the login process. I have created a new ssh key with ssh-keygen, and copied the ...
1
vote
1answer
24 views

How to configure pam sshd to allow different rules on different users/groups?

I'm configuring google two-factor authentication on an outbound server in the company I work for. Here are the relevant configurations: /etc/ssh/sshd_config: ubuntu@stage-itai-1:~$ egrep -v '^#' /...
0
votes
1answer
24 views

Remote host identification has changed

I'm trying to connect serverpilot manually on a cloud server at OVH (unbuntu 16) via the terminal on my mac (ssh root@vpsXXX.ovh.net) The operation failed once and now that I'm trying to re-setup it ...
0
votes
0answers
35 views

Why can't curl retrieve the SSH host key (key: <none>)

I've been using curl (by means of git-ftp) for a while, and passing only username and an sftp URL. Authentication would always work implicitely through publickey. Suddenly curl will not connect ...
0
votes
0answers
14 views

Synology NAS ssh key auth not working

I follow the directions here on how to setup ssh key auth on my synology NAS. These are typical linux configurations so nothing special; I include the link for reference. This gets me ssh root@ ...
1
vote
2answers
46 views

Block SSH hop based on traffic origin?

Is there a way to find where the SSH traffic origins from? We have two servers A and B. A is on a private network. B has 2 nics, private and public. A can SSH into B and B can SSH into A problem is, ...
2
votes
0answers
31 views

ssh -t -t sudo displays back my password

My problem is about executing sudo over SSH. I have tried various things, but non works. Here is my script: ssh my-host /bin/bash << EOF # some commands... sudo -u my-user -s -- << EOFF ...
1
vote
0answers
9 views

Ubuntu Samba ssh login changes after successful login

We have many Ubuntu servers running different flavors, but on some of our 14.04 versions we are having a baffling issue with ssh logons. When a user uses ssh to connect, they are prompted for their ...
1
vote
0answers
61 views

How To Configure OpenSSH on a Windows Server 2008 to authenticate against Active Directory

I have installed OpenSSH 7.1 on a Windows server 2008R2 which also is an Active Directory Domain Controller. I need to login with SSH on this machine using credentials from Active Directory e.g., ...
1
vote
1answer
31 views

Do incoming and outgoing ports have to match?

Our server was setup with sftp on a custom port, say, 12345. The connection could be done like so, and required the port setting: sftp -oPort 12345 user@host I understand that is at least ...
0
votes
1answer
31 views

my ssh is OK,but mha ssh check is fail

CentOS 6.6 + MySQL MHA(0.56)\ ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub root@slave2 and my SSH check is ok [root@master ~]# ssh -v root@slave2 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 ...