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
1answer
37 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
242 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
377 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
43 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
39 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
61 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
54 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
113 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
209 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
39 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
177 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
47 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
119 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
149 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
28 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
193 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
55 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
52 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
66 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
88 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
76 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
25 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
781 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
124 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
221 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
124 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
245 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
55 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
133 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
37 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 ...
1
vote
1answer
44 views

how to meter an SSH network usage?

It may be a simple question, but how can I see how much bandwidth an SSH connection, in Unix and Linux, has consumed since the login time until the SSH session is terminated (logged out)? Thanks, ...
0
votes
2answers
327 views

What is causing the famous “broken pipe” when I use tmux inside an SSH session?

Scenario1: I SSH from my employer (OSX Yosemite SSH client) to my home server (Debian stable) and (re)connect to a tmux session. If I leave the terminal inactive for a while (~20minutes), it seems ...
0
votes
1answer
532 views

sshd on a minimal Linux: “Failed password for invalid user root”

I'm trying to start SSH server on a minimal Fedora installation. And I mean really minimal: one that is produced by diskimage-builder ramdisk builder. It does not even have users (absent /etc/passwd ...
0
votes
2answers
35 views

Adding an SSH public key to a new account without enabling password authentication

On a SSH server, I have the following (truncated) configuration: PubkeyAuthentication yes PasswordAuthentication yes On my client, I have a key pair, and have added my public key on the server ...
1
vote
1answer
122 views

Ubuntu 14.04 LTS - SSH and VNC cannot be connected infrequently / connection loss

sometimes it seems to be impossible to establish a connection to this server. Later when a connection could then be established I am not able to see any hints what was causing this behaviour. When I ...
-3
votes
1answer
38 views

Issued kill -9 -1, centos not working

created user in centos and edited nano /etc/passwd and edited created user as user:x:0:0::/home/user:/bin/bash and logged as that created user and issued kill -9 -1, from then on words my server not ...
0
votes
1answer
36 views

How to do SSH authentication and CVS update automatically from cron job?

I call a script from cron job. In the script it needs to run CVS commands to update from a remote repository. To do that, it needs to SSH authenticate. I put the following code in the script ... ...
1
vote
3answers
58 views

Server login fail

When I login in my server using ssh, it shows me a message with the number of failed logins since the last sucessfull login. Currently I have this: Last failed login: Wed Jan 28 17:54:17 EST 2015 ...
1
vote
1answer
257 views

SSH key login not working

i am having some problems logging in to one server to SSH via a key this is the client output: ssh 'importer@pdw.me' -p 2201 -v OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading ...
11
votes
1answer
418 views

Upgrading openssh-server within an ssh session

Suppose that you issue apt-get upgrade from an ssh session and one of the packages to be upgraded is openssh-server. Is the new sshd process restarted after the upgrade? If yes how is the session ...
0
votes
0answers
182 views

SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent

Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in ...