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)

0
votes
2answers
49 views

SSH tunneling between two server

I'm trying to create SSH tunnel between two VPS for Secure MySQL Replication. I follow these steps (read only Step 1: Setup SSH Tunneling): ...
0
votes
1answer
59 views

ssh unable to login as root

I am unable to login as root via ssh. i have also set the password usin sudo passwd and sudo passwd root no luck. Any recomendations on how to solve this issue? # Package generated configuration file ...
0
votes
2answers
82 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 ...
0
votes
1answer
33 views

SSH access on public IP pool

I am creating VPS solution and currently network policy for Virtual Machines provisioning provides each VM with one public IPv4 address from the reserved pool of 255 addresses. I will need to provide ...
0
votes
1answer
91 views

SSH connection lost after random time interval, both sides claim the other closed the connection

I'm connecting to a virtual solaris machine from the windows host system running virtual box. This works for a while but after some time the connection vanishes. The stange thing is that sshd claims ...
0
votes
1answer
66 views

Forgot user password and disabled root ssh signin Ubuntu 14.04 server

First I need to say that I'm not pro Linux admin but web master trying to configure server. Though I am learning. I disabled root ssh login in sake of security and then I forgot to save user account ...
0
votes
0answers
68 views

Google Cloud: Connection Refused upon reset/shutdown

I recently signed up with Google Cloud to host a small VM instance. I created a basic instance with Ubuntu Server 14.04 LTS as its OS, installed apache2, MySQL and Wordpress to it and worked on a ...
1
vote
2answers
87 views

Locally deny login to users authenticated via LDAP

I have a RedHat Linux server that are is use for more than 1000 users Users names are coming to the server via LDAP protocol, so login authentication is from the LDAP My question: is it possible to ...
0
votes
0answers
34 views

Logging into an AWS EC2 instance from another machine in EC2

I have a few AWS EC2 instances that can SSH into each other. They are not in a VPC as this is an older AWS account and was active before VPC. One particular EC2 instance (zeta) is not able to SSH into ...
0
votes
0answers
54 views

Forcing a password change on OpenBSD

On OpenBSD 5.6 I need to provision a number of user accounts with default passwords. I would like users, upon their first SSH login, to be forced to change their passwords from the default. On CentOS ...
1
vote
0answers
27 views

How to know if a bastion or vpn is the right solution? [closed]

How do you choose between using a bastion or VPN when providing access to a vlan? I have seen many different setups, but don't have a good idea on how to make a less subjective selection. Is there a ...
0
votes
1answer
38 views

running a remote command with ssh seems to hang all other network activity

I'm running the following command to backup a mysql database from a remote machine: ssh root@example.com 'mysqldump mainserver' | gzip -c > mainserver.sql.gz I've timed the command and it seems ...
0
votes
1answer
248 views

Executing command remotely on another linux server from a shell script

I have a shell-script which extract details from a log file between two dates and executes a command on the output to generate some report.The log files are on different server and scripts are ...
0
votes
1answer
453 views

Adding new user to AWS EC2 - Permission denied (publickey)

I am trying to set up a new user for my AWS EC2. I have followed step by step this tutorial but I get Permission denied (publickey) error. I tried as well creating a newuser-key-pair.pem from AWS EC2 ...
-1
votes
1answer
44 views

Fastest way to copy small files over secure network without regard for file mod times or size

I want to sync files in dir1 and dir2 (two different servers). I do not care if the file sizes or modification times differ. EXAMPLE: dir1 contains file1, file2, file3, file4, and dir2 contains ...
0
votes
1answer
27 views

Is it normal for the identity of a host to change after enabling SSL?

I logged in to a known host - ssh username@example.com. I did a2enmod ssl and I generated a CSR to enable SSL on one of the virtual hosts on the server. From a separate terminal tab, I tried to do an ...
0
votes
0answers
40 views

Can OS X Server Wiki show Active Directory Files?

I have active directory (2008R2) and an OS X Server (Yosemite) setup. OSX Server recognises the Active Directory and when I SSH into it with an AD account I am able to see my home folder. Now my aim ...
0
votes
1answer
31 views

The authenticity of the server when accessing it through a domain name instead of an IP

When I do ssh username@123.123.123.12, I log into the server fine. However, if I do ssh username@example.com, where example.com points to the same IP addrees, I get: The authenticity of host ...
0
votes
0answers
63 views

Forgot password in remote ubuntu

I have a remote server with Ubuntu. I have ssh key for it and can login to this machine from my computer without password. Now I like to sudo, but I forgot my password for it. How can I get or ...
1
vote
1answer
56 views

Sync failure between Gerrit & Github for Windows client

I've set up a POC Gerrit server, and am able to push to it via the Git Command Line. I'm trying to set it up so that less experienced colleagues can use the Github for Windows client to sync commits ...
2
votes
0answers
120 views

Using Windows NPS for Cisco router aaa authentication - is this safe?

I setup RADIUS authentication on a Cisco router and pointed it to a Windows NPS. Now I can ssh into the router my with AD account YAY. But now that I got it working I'm going over the settings to ...
2
votes
2answers
223 views

How to change the sshd listen address on Mac OS X?

This question is similar to the question here, about changing the sshd port on Mac OSX, but instead of changing the port number, I want to change the listen address of my Mac's ssh server. Setting it ...
0
votes
1answer
65 views

Connecting to a pool member over SSH w/ a host certificate good for the pool name only

I'm using OpenSSH certificates for a pool of hosts. That is to say, in ~/.ssh/known_hosts, there's an entry that looks thus: @cert-authority service.redacted.com ssh-rsa ... ...and ...
1
vote
1answer
40 views

What's the downside of disabling PAM in OpenSSH if only public-key login is allowed?

/etc/ssh/sshd_config by default has the following line UsePAM yes I read through available documentation and came to the conclusion that PAM is not used if I only use public-key login. What ...
0
votes
3answers
192 views

Alternatives to Kerberos for passwordless server access

I have a bunch of Linux servers and three Windows servers 2008 R2. I would need a solution which would enable passwordless SSH login from each of those servers to all others. I could do this by ...
0
votes
1answer
47 views

Enable SSH on public IP [closed]

I've just taken the control of a server. This server worked in a private environment, in a VPN, accesible via a private IP. Now it's public and linked to a domain name. I can access SSH via the VPN ...
0
votes
0answers
49 views

`ssh-add -l` doesn't always print key paths

Recently, at least as of openssh 6.7_p1, ssh-add -l stopped, in some circumstances, printing the path to some ssh keys loaded in the agent. For example: 13:41:23 me@n00:~ $ ssh-add -l 256 ...
0
votes
1answer
129 views

pam_mount not working when logging in from ssh or console

okay so i configured pam_mount on my centos 6 machine as i did on my centos 7 and 5 machines. But when i login locally or via ssh, pam_mount can't mount my home dir. when i login with a local user, ...
2
votes
1answer
156 views

Why is sshd engaging PAM still?

Background/Behavior is: if you ssh to box via and GSSAPI/Kerberos succeeds and you have a local user in /etc/passwd, you login fine per below PAM config. All Good there. But if you don't have a ...
0
votes
1answer
30 views

“git pull” fails, but only remotely?

When I try to ssh -C user@my_server 'cd /home/me/my_repo' it works. When I try to ssh user@my_server, then cd /home/me/my_repo' and then git pull it works. But when I try to ssh -C user@my_server 'cd ...
0
votes
1answer
221 views

LDAP users can't ssh

When I ssh to my CentOS 6 server with root account, everything is working fine. But when I try with an LDAP user, I get permission denied. I tried logging in with root, and then su to a LDAP user, to ...
1
vote
0answers
45 views

Weird proxy behaviour

I recently installed a computer in a network that is behind a proxy, I configured a reverse ssh tunnel to connect to it, and tunneled the ssh connection with corkscrew to connect to a server, this ...
14
votes
3answers
2k views

Is there a safe way to store passwords used for ssh by a script?

So first, I know, I should use key auth with SSH. No need to explain me that. Issue here is that I have a (big) bunch of servers, and I need to have a script be able to connect each of these. I use ...
0
votes
1answer
59 views

WinSCP, Debian & Sublime Text - File change not recognised by server

I'm connecting to a Debian server using WinSCP (with private key not password if that makes a difference). It's setup so that when I double click on a file it opens in Sublime Text (v3, Build 3065). ...
0
votes
0answers
54 views

CentOS - how to chroot sftp and have mysql as shell

I have a user who I would like to have sftp access to one folder only (chrooted). Also he logs in with ssh, I would like him to only have access to mysql. I am able to chroot the users sftp (by ...
-1
votes
1answer
72 views

Pushing to Bitbucket with SSH works, but without a private key on my server

How is it that I am successfully pushing to Bitbucket, when there is no private key file on my Digital Ocean server? When I created my Digital Ocean server, I provided it with a public key. This key ...
1
vote
1answer
1k views

ssh server config - input_userauth_request: invalid user

I have a problem configuring my SSH server to be able to log in with public key, without password. tail -f /var/log/auth.log gives Feb 6 14:56:06 ubuntu sshd[24654]: rexec line 26: Deprecated ...
0
votes
0answers
89 views

Executing a remote command over an SSH tunnel

I have created a reverse SSH tunnel from computerB to computerA. On computerA I have a script (r1on.sh) with the following content: #!/bin/bash echo 'r1on' > command.log /usr/bin/ssh -p2222 ...
0
votes
1answer
78 views

nfs mount passwordless login

Setup: OS : CentOS5 node 1 : 172.16.1.1 sandbox1.local node 2 : 172.16.1.2 sandbox2.local The nodes have the hostnames in the hots file. Pinging to each other works fine. Problem: My home is ...
0
votes
1answer
26 views

ssh tunneling on the same machine

I am pretty lost with that. I have a machine with multiple adaptors, wlan0, eth0 and vpn_tun10. I want to set a tunnel on this machine to listen to request on the port 1080 and route them to the same ...
9
votes
1answer
798 views

reboot multiple machines remotely

I need to reboot a number of machines remotely. Normally I just issue for host in <hostlist>;do ssh ${host} 'sudo shutdown -r now';done But I want give the users some time before the ...
0
votes
1answer
141 views

Why are SSHD sessions being left open

root 4612 1 0 Jan26 ? 00:00:00 sshd: lp [priv] sshd 4614 4612 0 Jan26 ? 00:00:00 sshd: lp [net] root 4617 1 0 Jan26 ? 00:00:00 sshd: lp [priv] sshd ...
0
votes
1answer
238 views

Why can't I enable SSHv2 on my Cisco 3750X?

It seemed simple enough: use ip ssh version 2. This was the result: 3750xCoreStack(config)#ip ssh version 2 Please create RSA keys to enable SSH (and of atleast 768 bits for SSH v2). ...
1
vote
2answers
133 views

How do I configure a CIFS only NetApp filer for ssh public-private key access?

I've a NetApp filer that's running exclusively CIFS. (/vol/vol0 is CIFS exported) Account logins via ssh are possible as DOMAIN\username, but we're having difficulty with configuring ssh ...
0
votes
0answers
47 views

dying processes (going defunct)

I have a script that is using several ssh sessions to upload files to remote hosts. It has been working for years. For some reason recently it stopped working, because 2 of the processes die (they go ...
2
votes
1answer
263 views

SSH with DSA 2048 bits key

I need to set up secure connection through ssh keys, prerequisites are : DSA type number of bits : 2048 Passphrase : yes On my Linux I can't create this kind of key, the man says : DSA keys ...
-1
votes
2answers
58 views

disable /home/user/.ssh/authorized_keys for all users [closed]

each time i delete this file: /home/user/.ssh/authorized_keys , someone creates it again. i deleted the file and checked if the user has ssh access or not, but i am sure he hasn't. how can i disable ...
1
vote
0answers
30 views

Domain randomly becomes unresolved

Recently, I've been having some issues with a domain name. I set up my domain to point to my server, but every now and then, when attempting to ssh in, I get the error: ssh: Could not resolve ...
1
vote
2answers
143 views

Copying data between AWS EC2 machines

There are times where, in order to do some debugging or perhaps a manual migration, I need to copy large chunks of data from one EC2 instance to another. When the size of the data is tiny, it's simple ...
2
votes
1answer
38 views

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...