Questions tagged [ssh]
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.
1,937
questions with no upvoted or accepted answers
1
vote
0
answers
714
views
mpiexec won't run mpi4py script when two hosts are utilized in an MPI cluster established through LAN
So I have this other desktop PC, that serves as my server, primesystem and a laptop as my client, zerosystem that is connected to it. They both serve as my ssh-server and ssh-client respectively, and ...
1
vote
0
answers
6k
views
How to Chain Proxies With Auth (Proxychain?)
I have my Kali local machine (A). I can SSH into another server (B) and use the proxy settings in Iceweasel or use proxychains to visit 10.2.x.x addresses.
However I can not access a machine (C) on a ...
1
vote
1
answer
82
views
Authenticate Users based on AD group membership. Ubuntu 14.04 , Cant find help anywhere
Been Googling for two days now. I am not new to Linux, but am new to AD and using it in Linux.
So. I have an AD system ( not run be me ) and its joined happily. I followed this procedure: https://...
1
vote
1
answer
10k
views
SSH ProxyCommand not working with ansible_ssh_common_args
I'm using a jump box (server A) to access server B.
As per the ansible docs here, I have the following:
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q [email protected]"'
Server B is, ...
1
vote
2
answers
1k
views
I can't block port 22 to a specific IP (windows server 2008R2)
I'm using Bitvise SSH server and recently get a connection attempt every minute from one IP number. Bitvise terminates the connection immediately, but it's been going on every minute for days and I ...
1
vote
1
answer
1k
views
ssh command without tty hangs
I'm trying to execute a simple ssh remote command from my local machine to an AWS instance, by running:
ssh -i /my/key.pem ec2-user@<myhost> 'ls -l'
When I do this, the command returns with ...
1
vote
0
answers
288
views
How to do I create linux VM with ssh public on azure automation
Right now, I am creating Linux VM without public key on azure automation. My aim is to create linux VM with ssh public key on azure automation. How to get ssh public key from "accets" on azure ...
1
vote
0
answers
146
views
Apache using all cpu and cause OOM killer
I have an Xen-VPS CentOS 6.5 64 Bit with 2GB memory and 4 GB Ram, I have application with php, in my application lot of pages need to image which generated by php_imagick extension, here is apache ...
1
vote
0
answers
266
views
Change SSH key on EC2 Instance
I want to change the SSH key file needed for logging in my Ubuntu EC2 Instance. I know it is not possible to do so directly from the EC2 Management Console so I tried changing it by doing the ...
1
vote
0
answers
128
views
SSH (interactive) hangs during full upload bandwidth use
I work daily on SSH from a Linux desktop to an AWS EC2 Amazon Linux server and the connection has performed very reliably for two years, but in the last few days I have seen the SSH command line hang ...
1
vote
0
answers
465
views
SSH with Putty as proxy server
I have one restricted network with a Windows machine and one less restricted network with a Linux machine.
I'm only able to initiate connections from the Windows machine to the Linux machine through ...
1
vote
0
answers
971
views
Write Permissions Denied when using sshfs to Mount Remote Directory on Boot
I have two Cent OS 7 servers I am trying to mount a directory from my host server to my client server. I want this to automatically mount on boot.
On my host machine (hostmachine.local) I setup a ...
1
vote
0
answers
1k
views
Interpreting TCP Traceroute results here?
I used to be able to connect via SFTP to a remote server to download files. Our local server is Windows 2008 Enterprise and the remote server is Unix. The local computer and the remote server are ...
1
vote
0
answers
100
views
why ssh not route outgoing packages (pptp)?
I have VPS #1 that pptpd and sshuttle installed on it and VPS #2 that have ssh access to it
I need to rout trafic from VPS#1 to VPS#2 (by tunnel because pptp not available to vps#2) for users that use ...
1
vote
0
answers
28
views
restoring debian user access
I have accidentally set the owner for all files and folders in the /home folder to 'root' (and a lot of other folders also) and now when I ssh into the server as myusername, I get the following error:
...
1
vote
1
answer
424
views
Cannot SSH to ec2 instance in VPC
I'm just starting with AWS, and have 2 ec2 instances running on a VPC, one with a public and private IP, one with only a private IP.
I can SSH to both (using my key) if I attach an external IP to ...
1
vote
0
answers
220
views
How automatically start an outbound SSH connection on a server when an internal client connects to that server
Question
How to automatically start an outbound SSH connection on a server when an internal client connects to that server on a specific port, for any given service? (not just sshd on the server, and ...
1
vote
0
answers
1k
views
any problems with UseLogin yes? /(workaround on no system information safe?)
this is about the system information, shown to the user after login on an ubuntu-server.
by default, an ubuntu-server is showing you system information, when logging in, such as the servers ip-...
1
vote
0
answers
853
views
Fail2Ban regex in sshd.conf not catching failed root logins in /var/log/auth.log
I used Fail2Ban on my Ubuntu server (14.04 LTS), and it mostly works well.
I recently noticed the default regex in /etc/fail2ban/filter.d/sshd.conf does not match some failed sshd login attempts.
...
1
vote
1
answer
2k
views
ssh: ProxyCommand via persistant ControlMaster connection
I have two servers, middle and remote. middle is used as a proxy to access remote. I've set up middle's ssh config so that it preserves connections to remote via ControlMaster, as follows
Host remote
...
1
vote
2
answers
2k
views
Trying to SSH into an Amazon Ec2 instance - permission error?
I'm trying to connect into AWS Ec2 server via mac Terminal but keep getting Connection closed by xx.xx.xx.xx.
Here's what happened last night: I was in the server and was deleting and uploading ...
1
vote
1
answer
5k
views
enable ssh over virtual machines running on kvm
I am trying to connect to a virtual machine running on KVM hypervisor from a host machine (Ubuntu 14.04) through ssh, but it is giving me the following error:
ssh: connect to host 10.117.82.2 port 22:...
1
vote
0
answers
825
views
Enabling SSH for deploy of a bitbucket git repo
I'm trying to deploy my git repo to my server. To make this work I first needed to setup ssh on my locale computer and on my server.
for bitbucket I followed https://confluence.atlassian.com/...
1
vote
2
answers
3k
views
ssh authentication doesnt allow public key
I'm having a problem with the authentication of SSH on one of our test servers. I have configured the sshd_config correctly yet the Authentication method shows only password auth.
[root@[client] ~]# ...
1
vote
0
answers
168
views
linking a local windows git repository to the aws linux git server
I want to create a git server on my aws linux server so that whenever I want to update my website in the public_html I dont have to manually transfer files to the server, I want to make use of git, ...
1
vote
0
answers
670
views
SSH over WAN through reverse proxy to LAN git server
We have an URL to our external IP to our gateway that connects to a CentOS nginx reverse proxy behind which sits our CentOS6 Gitlab server on the company LAN
Through this we currently have http ...
1
vote
0
answers
302
views
How to enable SFTP error status in RHEL7.1?
Here is the problem that I am facing. I have a provisioning server which runs a perl script to upload and download certain files in a regular interval using sftp. The sftp command is executed in batch ...
1
vote
1
answer
2k
views
Forward SSH to OpenVPN client via UFW
I have an Ubuntu 14 server that is running OpenVPN gateway and ufw. Let's call it Server A.
I have an IP reservation for a permanently connected server (Server B). It always connects to OpenVPN and ...
1
vote
0
answers
2k
views
Connection to MS SQL Server instance through SSH SOCKS proxy fails
I use a local ssh socks proxy (localhost:7070) on my Linux Laptop to connect to my company's intranet over my company's Windows+cygwin laptop, which has intranet access:
Linux --(ssh -N -D 7070 -p ...
1
vote
0
answers
212
views
iptables rule limiting the number of connection in a broken pipe case
I am limiting the number of SSH connections using iptables but in case of, for example, a broken pipe (computer goes sleep mode, network problem, etc.) I am no longer able to reconnect.
The rule I ...
1
vote
0
answers
380
views
Is it possible to reverse ssh to a system behind a router via a third system if port forwarding is disabled on the middle system?
I want to access a workstation in my lab from my laptop in my hostel room. But I can't directly ssh to the machine as both my laptop
(in my hostel) and the worstation are behind two different routers ...
1
vote
1
answer
156
views
OpenSSH server frozen, can't unfreeze using Escape Char in OpenSSH client
Connecting to Ubuntu Server 14.04.2 from a OpenSSH client in Xubuntu 15.04
I can't unfreeze the session which has timed out, I have tried the ~. escape character but the terminal won't even let me ...
1
vote
1
answer
1k
views
Having trouble to connect sshd on CoreOS sometimes
I have 12 node of bare-metal CoreOS cluster (on SuperMicro Blade). Every nodes was installed with same image and cloud-config. (Stable 717.3.0)
The problem is that I fail to connect sshd frequently, ...
1
vote
0
answers
531
views
Simple secure firewalld allowing only ssh?
I am upgrading to CentOS 7 and learning firewalld.
When I set up a new server my default iptable config for best security was (I believe this is a pretty standard config):
# IPv4
iptables -F
...
1
vote
2
answers
3k
views
fail2ban wont ban ssh from local hosts
I'm trying to configure fail2ban to block ssh from a local hosts. Fail2ban is install on CentOS 7 with firewall (Linux 3.10.0-229.4.2.el7.x86_64 x86_64 ). I have copied the jail.conf to jail.local i ...
1
vote
1
answer
2k
views
Zabbix ssh needs to force pseudo tty allocation
I am currently trying to configure an item in zabbix to execute a check on a remote server via SSH. When I run the following command on the zabbix box it works
sudo -u zabbix ssh -t root@[remote_ip] '...
1
vote
0
answers
863
views
SSH stalled after a while
I am executing some commands over SSH from a linux client (centos 7) toward a server (wind river linux) and for a reason it always stopped ( not completed ).
If i executed a command that take short ...
1
vote
0
answers
107
views
SSH Tunnel connection issues
I am having difficulty with an SSH Tunnel which keeps dropping. i have tried with a variety of ports and have checked the event viewer to see if there's any information there but as yet have found ...
1
vote
0
answers
2k
views
SSH 'Permission denied' on one host but not on another even though they're the same using the same keys
Both Server A and Server B has the same private keys under /root/.ssh/id_rsa. Both public keys are on the git repo. Both have the same sshd_config and ssh_config. However one gets Permission denied ...
1
vote
0
answers
105
views
Transfer control of terminal process to a different emulator
How can I transfer running terminal session between PCs on-the-fly? I mean - I'd like to be able to transfer for example SSH session with running application to another PC lets say laptop, without ...
1
vote
0
answers
2k
views
How to kill all process on ssh logout? (Kill running Background proccess started with screen etc)
Hi i have a multiuser centos server running. There are for example 3 users (non root) - each of them have their own homedir.
SSH Login is allowed (bash).
How could it be reached, if a user started ...
1
vote
0
answers
129
views
Ubuntu 14.04 - rsync corrupting SSH configs/keys?
I have two Ubuntu 14.04 servers S1 (user root) and S2 (user dataman). S1 is responsible for handling file uploads and transferring backups to S2. On S1 I am using PubKey authentication to S2 for ...
1
vote
0
answers
225
views
why does having ~/.ssh/id_rsa.pub cause GUI dialog asking for SSH password even though SSH_ASKPASS is empty?
How the problem started
For some reason I did not have my id_rsa.pub file in ~/.ssh. So I copied it off one of my servers to ~/.ssh/ on my machine... so that I have it, so I can copy it to servers ...
1
vote
0
answers
198
views
Two allowed paths in rsync command in authorized_keys
I have a question about rsync restriction in authorized_keys command. I need to copy files via rsync from one server to another without prompting password. There is no problem, but I need to specify ...
1
vote
0
answers
2k
views
CentOS 6.5 ssh ChrootDirectory not working
I have been trying to configure my CentOS 6.5 minimal 64 bit machine to allow SFTP users to connect and get jailed to specific folders. I can sftp in using the unix commmand: "sftp user@localhost" and ...
1
vote
0
answers
218
views
Debian does not start any service at boot
I've got a VPS server running on Debian Wheezy and I monitor it with Zabbix.
Yesterday, the server was unreachable, I could ping it but there was no ports open (using nmap).
So I contacted the ...
1
vote
0
answers
169
views
Access to equally defined VM in different VLANs
I have a working libvirt cluster and in order to perform some paralellization I have duplicated it. At the moment my scenario looks like this: two clusters whose VM definitions are exactly the same, i....
1
vote
1
answer
1k
views
Blocking SSH Brute force from a HAProxy LB
We're trying to grant access to an internal SSH server using a HAProxy setup on a public DMZ. This works as expected however connections into the server are originated from the HAProxy (tproxy won't ...
1
vote
0
answers
1k
views
permission denied using a public key with Copssh on a windows 2003 server
I've a Windows 2003 SP2 server with CopSSH version 1.1.0.1 installed.
I've a user set up for SFTP who is able to transfer files from two servers.
I am trying to add the public keys he provided me so ...
1
vote
2
answers
3k
views
Trying to ChrootDirectory an SFTP user to their home directory
I have followed a few examples of how to do this, all of them end up with modifying sshd_config to
Subsystem sftp internal-sftp
Match User chubbyninja
ChrootDirectory %h
AllowTCPForwarding ...