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)

1
vote
0answers
27 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 ...
4
votes
0answers
79 views

BackupPC using rsync fails with “protocol version mismatch — is your shell clean?”

I just installed BackupPC in a Debian box to use it as backup server. As you know, this software makes use, among others, of rsync. When using the rsync option, it fails. Server: Debian Jessie. ...
2
votes
1answer
42 views

Keeping track of SSH private keys without comments

SSH public keys support comments (which simply consist of text appended to the end of the key), which makes it easy to identify an otherwise unidentifiable id_rsa.pub file. You can use the comment to ...
7
votes
3answers
172 views

SFTP with chroot depending on public key of connecting user

I want to build a server (running Debian or FreeBSD) that receives backups from different clients via sshfs. Each client should be able to read and write its own backup data, but not the data of any ...
6
votes
1answer
568 views

PermitRootLogin is no, I cannot login but why password is asked from user?

I have disabled PermitRootLogin and I cannot login to server by root, but password is asked from user: Is this correct? Or there is something here that I'm missing? Why password is asked when it ...
1
vote
1answer
192 views

How To Disable diffie-hellman-group1-sha1 for SSH

I have found that my server via SSH still supports diffie-hellman-group1-sha1. To stay compliant with latest PCI Compliance I have been trying to figure out how to disable diffie-hellman-group1-sha1. ...
-1
votes
1answer
39 views

SSH RDP Tunnel and Port Connection

Tried doing some research but can't really figure out the solution (or how to troubleshoot further) for this problem. Objective and Reasoning for setting this up: SSH Tunnel RDP from work to home ...
0
votes
1answer
63 views

How to maintain ssh connection for multiple scp transfers?

I'm using the scp command to copy files from my local machine (ArchLinux) to my server (CentOS 6.5). But for each scp command a new connection is established and although I'm using SSH keys for ...
3
votes
0answers
52 views

Strange behaviour ssh -> bash --> (tty no echo) --> c program?

At job we have an old C program which works with industrial hand terminals from Honeywell. That terminal has its own ssh client to connect to a linux redhat 6.6 server. Once it is connected to the ...
1
vote
1answer
83 views

iptables to allow only ssh and https

I'm trying to configure the iptables on my device in order to allow only SSH and HTTPS traffic. In particular, the HTTPS protocol is used to call some REST API toward a remote server from a java ...
1
vote
1answer
84 views

How to remember/cache or specify private key passphrase for Ansible

Just starting out with Ansible, I have set up an Asible user on the client machine and created a set of keys from OpenSSL. I am running Ansible under my own account. I have specified the user and ...
0
votes
1answer
33 views

SSH to ESXi server with Expect immediately closes

I am writing a VM deployment tool that needed to start VMs on an ESXi server. To do this I am using Perl's Expect module to spawn an ssh client to connect to the server and use vim-cmd to manage the ...
0
votes
1answer
57 views

User without home access remote machine ssh

I want a production server to push backup files to a backup machine. Backups are being done via www-data cron script (as they can be edited by website cms), and once it has finished the idea is to ...
0
votes
1answer
46 views

Increase Connection Timeout for “ssh: connect to host xxxxx port 22: Connection timed out”

I need to perform a sort of scan over 20k+ machines in the network (all linux), and I am using ssh to connect to each machine, run a small command on it, and gather the output. I am running parallel ...
-6
votes
2answers
48 views

how to execute ssh command in line [closed]

i know how can ssh to server as $ ssh <user>@<domain> then second the command prompt ask for password as <user>@<domain>'s password : ----- here how can be able to do ...
0
votes
1answer
35 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 ...
0
votes
0answers
22 views

Passwordless ssh works differently on different users

There are two users on one server. One can perfectly well be logged in passwordless-ly but not the other one from my local station. Both users have their .ssh/authorized_keys enriched with my ...
3
votes
4answers
245 views

Perform an automated scp on a Windows server

I need to perform an automated scp (every two hours) from a Windows 2012 server to a Linux server. I know how to do it from a Linux server to another Linux server (ssh and cron). On Windows, what ...
2
votes
0answers
84 views

Monitoring failed ssh logins with pam and bash?

I modified /etc/pam.d/common-auth to run a bash script when a login fails or when a login is successful and it works for successful logins but not failed login attempts when trying to ssh. Once I am ...
0
votes
2answers
49 views

SSH failing for jailed account

I tried to setup a chroot jail for a user account I specifically setup for ssh. I set it up and it seemed to work fine yesterday but today it is not working. It doesn't seem to be an SSH issue since ...
0
votes
3answers
57 views

Proper way to send SSH commands to multiple clients with sudo?

I have created a very simple shell script to send SSH commands to multiple hosts. Right now I have copied my ssh id so I don't have to use a password to login to the servers. But if I want to do a ...
-1
votes
2answers
32 views

Why can't I connect to a new Ubuntu server?

I'm trying to connect to a new Ubuntu server. I was using the hardware of this server previously (with Desktop Ubuntu) before installing Ubuntu server. Do you know what can be happening? ...
35
votes
5answers
4k views

Is logging in as a shared user a bad habit?

I've worked in organizations where instead of creating a new Ubuntu user per person that wants to log into a machine, the sysadmins simply add the ssh key of each user to .ssh/authorized_keys, and ...
2
votes
0answers
217 views

Mac OSX - SSHD partially broken after El Capitan Upgrade

I recently upgraded my firm's Mac Mini device to El Capitan from Yosemite, and encountered several issues during the upgrade. I've gotten most of them resolved but one that's still failing is the SSH ...
1
vote
1answer
74 views

Changing password of a sftp chrootDirectory stops it from logging in

So I have a chrootdir setup in sshd_config to a folder, and the user myuser, it's been working fine for months, then today I wanted to change myuser's password, so I did this with passwd, then ...
0
votes
0answers
76 views

Ansible log in as regular user and become root

using the new "become" syntax, how do you configure your playbook to log in to a host as a regular user, switch to the root user and ask for a password? I tried: --- - hosts: foo gather_facts: no ...
0
votes
1answer
40 views

Countless (defunct?) SSH processes -how do stop it from happening?

My vServer hoster threatens to cancel our contract if I don't stop creating thousands (9000 to be precise) of SSH processes. I don't know if they made the processes defunct or if they were like this ...
0
votes
1answer
56 views

How to remove injected code between two strings recursively in PHP files using SSH

We have in-house Linux(Ubuntu) development server. Few days ago suspicious code was injected. Just to mention here that we have more than 300 projects. Code is injected in almost every file ...
1
vote
1answer
29 views

passwordless ssh in VM - weird authorized keys file

I am trying to setup passwordless ssh to my localhost (itself). I have host machine PM1 and then I lauch a VM(vm1) using qemu-kvm and logged into VM. Then, I am trying to setup passworless ssh within ...
2
votes
0answers
51 views

Allow ssh when g+w on user's home directory

Is it possible to allow one user to connect via SSH when that user's home directory is g+w? As I understand it, I can allow this if I set StrictModes no in /etc/ssh/sshd_config, but that would mean ...
0
votes
0answers
57 views

Dependencies in openssh-server package in LXC container in Ubuntu 14.04 LTS

Hi I've been fiddling with Lxc containers in Linux and find it an invaluable resource for testing and dev purposes. Here's my problem. I have a just-installed container and when I try to install ...
2
votes
1answer
69 views

How to disable sftp access to user with ssh already disabled (user shell = /bin/false, but connection still works with sftp)

In sshd_config, by default, login is allowed for all groups and users. The allow/deny directives are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. ...
1
vote
1answer
24 views

Scalable remote access gateway for 20K+ servers

Consider a worldwide distribution of thousands of embedded servers, and clusters of servers behind firewalls that sysadmin wants to access remotely. With a focus on a remote access for login and ...
4
votes
2answers
524 views

How to SSH to a remote server using a private key on Linux?

I have been trying to connect to a remote server using my private key file from the terminal, but it doesn't seem to work. I don't understand why. Here is how I do it: $ ssh -i private.ppk ...
0
votes
0answers
33 views

One SSH client can only connect through port 22, not other ports, on any remote server

I have a client server under Debian Wheezy. It can not connect to a server that has a special opened port for ssh (let us say 2222). All other clients I use (from other sites) can connect to my ...
0
votes
1answer
47 views

apt-get maddeningly doesn't work with tsocks proxy set up with ssh

I have a machine that cannot access the internet, yet can connect to a machine that does. I don't want to use a proxy server, I've been told that I can just use ssh. So I've proceeded simply by ssh ...
1
vote
1answer
32 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: ...
-1
votes
1answer
25 views

Can scp maintain original file structure on remote server?

Supposing we have the following files to copy to a remote server: /dir/test.php /dir/inc/inc.php I now want to copy both files to the remote server as follows: cd /dir/ scp test.php inc/inc.php ...
1
vote
1answer
60 views

OpenSSH use (public key or password) + google authenticator

I want to allow these two authentication types: public key + google authenticator OR password + google authenticator. I have the following in my sshd_config: AuthenticationMethods ...
1
vote
1answer
93 views

Galera Rsync SST Secured via SSL/SSH

Is it possible to secure Galera Cluster SST via rsync with SSL/SSH? This page suggests it is not, specifically the following quote: Unlike rsync, xtrabackup includes support for SSL encryption ...
2
votes
1answer
74 views

Connection to postgresql hangs over SSH tunnel on OSX

Trying to connect to a remote PG server on OSX but it keeps timing out. First, I set up the tunnel: ssh -L 5433:serverip:5432 user@serverip Then in a separate terminal I attempt to connect to PG: ...
1
vote
2answers
49 views

Central control for SSH access to AWS instances

What are some approaches or best practices for managing SSH access by many devops to many AWS instances? I'd like to have the ability to e.g. add or remove access for a user to multiple instances ...
0
votes
1answer
120 views

Dumping command output from SSH session to procurve

I am trying to get information from the command "show mac-address" out of a collection of 12 procurve switches in 2 different locations all connected via fiber PTP. I want to import this into SQL for ...
0
votes
0answers
85 views

Cannot telnet to port from Azure VM

I have an Azure VM setup and I have a program that SSH's out from that VM to port 7022 on my supplier's server. Sometimes I am unable to connect to this port and this can last for up to 30 minutes or ...
0
votes
1answer
27 views

SSH remote execute command with special chars

Im trying to run this from my shell: I have a bunch of machines, so i have this in my .bash_profile function sssh() { ssh -i ~/.ssh/supersecret.pem $@ } This is the command: export ...
0
votes
0answers
46 views

Fabric failing to connect on EC2 Instance using public key

I'm deploying an app using fabric, everything goes fine with to others servers but when the EC2 instance turn come i got this logs, I also configure the same public key for the same user on both ...
0
votes
2answers
43 views

Unable to login with SCP using ppk file

I need it to connect to a linux server form a windows using a .ppk file to connect. The steps are: Generate a id_rsa key in server linux using ssh-keygen. Copy the id_rsa file to a windows machine ...
0
votes
2answers
42 views

Does ssh autoload everything in `.ssh`?

According to the following post, it seems when you ssh into a box, by default it will load all keys (public and private) in ~/.ssh for authenticating on the server I am connecting to. Is this true? ...
1
vote
1answer
46 views

Can't get SSH ProxyCommand to work (ssh_exchange_identification: Connection closed by remote host)

I'm unsuccessfully trying to use SSH ProxyCommand to connect to a server via a jump box. My config is below, I'm running this command: ssh 10.0.2.54 -F ssh.config Host x.x.x.x User ...
0
votes
0answers
169 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 ec2-user@A.A.A.A"' Server B is, ...