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
28 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
37 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
34 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
114 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
57 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 ...
-1
votes
0answers
19 views

To use ssh-id-copy do you need both id_rsa.pub and id_rsa? [migrated]

I am trying to setup a second access ssh key for a friend. He sent me his id_rsa.pub. ssh-copy-id -i id_rsa.pub root@123.123.123.123 /usr/local/bin/ssh-copy-id: ERROR: failed to open ID file ...
0
votes
1answer
28 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
20 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 ...
-1
votes
0answers
14 views

Unable to port forward to VM through loopback (127.0.0.1) [migrated]

I have a somewhat strange issue on my PC where I am unable to reach a Virtual Box VM with port forwarding through 127.0.0.1. It will however work through 127.0.100.1, or 127.x.x.x for that matter. I ...
8
votes
1answer
676 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
56 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
0answers
4 views

Known hosts file keeps getting deleted [migrated]

Have a weird issue where my known_hosts file is getting deleted periodically. Is there any way I can watch the file to see what may be deleting it? Any OSX logs that can be monitored to see what might ...
0
votes
1answer
47 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
38 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
29 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
113 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
0answers
12 views

SSH login notify connections with exceptions [migrated]

I'm trying to create a bash script to send me a mail when there is a ssh connection recepient="name@example.com" if [ "$PAM_TYPE" != "close_session" ]; then host="`hostname`" ...
-1
votes
2answers
40 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
25 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
64 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
28 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
36 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
0answers
23 views

As a user with a home server, is it particularly bad or dangerous to open port 22 to my server? [migrated]

I have a CentOS home server that I use for various things, which sits on my home network behind my router. Normally when I want to do something remotely I will VPN in (my router has a built-in OpenVPN ...
0
votes
2answers
71 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
73 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
26 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
51 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
30 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
29 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
35 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
122 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@pdwhost.iwillkeepthis2.me' -p 2201 -v OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 ...
11
votes
1answer
402 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 ...
-1
votes
1answer
43 views

SSH connection refused after installing webmin [closed]

I'm running Debian Wheezy on Amazon EC2, from their offical image: http://deb.li/awsmp I've got my SSH key and everything has run perfectly until I installed webmin via the deb-packages: ...
0
votes
0answers
79 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 ...
1
vote
1answer
35 views

OpenSSH as SFTP server: Trigger successful and faulty changes

I am using the current OpenSSH version on Debian 7.7 Whezzy, which is, according to dpkg, 1:6.0p1-4+deb7u2. I configured OpenSSH to allow clients to connect using SFTP, and read and modify (upload or ...
0
votes
1answer
30 views

closing ssh tunnel when using connection sharing without killing ssh?

I typically use ssh with connection sharing enabled; this causes any ssh tunnels I create subsequent to the initial ssh login to use that connection. Is it possible to close an ssh tunnel without ...
1
vote
1answer
48 views

Configuring Pfsense via ssh

I want to know how i can completely configure and add add tables to pfsense via ssh. my goal is to have a web installer that configured multiple system and based on the output it will configure the ...
0
votes
1answer
35 views

Can't change folder ownership via SSH

For some reason, I have a folder that I cannot read nor change its ownership. If I do a ls command, this is what I get: drwxrwxrwx 4 myusername myusername 4096 Jan 26 20:35 media1 <--- OK ...
0
votes
0answers
22 views

HTTP Post over reverse SSH connection - data cut off

Here's a schema of the setup: Client --HTTP-Post--> SSH Server <--rSSH--> Camera An IP-Camera is behind a firewall / NAT and therefore opens a reverse SSH connection (tunnel) to a publicly ...
0
votes
1answer
42 views

Amazonubuntu ec2 is not responding via ssh [closed]

It used to work but now it won't respond. ssh -i aws-niklas140428.pem ubuntu@54.72.xxx.x It does respond via HTTP though and I can restart it in the webGUI at aws.amazon.com How can I find the ...
2
votes
2answers
114 views

Where's sshd in OpenSuse 13.2?

After I installed OpenSuse 13.2 I discovered that even if the ssh connection to the box were successful I could not find the running service as I did before (with chkconfig command) Why? My last ...
1
vote
1answer
52 views

How to change SSH key on Google Cloud?

I need to replace the existing SSH key with a new one, but I don't see such options in Cloud admin panel. What is the right way to do this?
-2
votes
4answers
92 views

Change SSH Port, but spoof on port 22

I have changed the SSH default port (by updating the Port attribute in the /etc/ssh/sshd_config file). But what I would like to do is still make it appear as if everything is working as expected if ...
2
votes
2answers
38 views

User that can only logon with ssh keys, not password

I'm trying to create a user on a Linux box that can only log on via ssh with a key specified in authorized_keys. The user should not be able to log on via password, neither via ssh nor locally at the ...
0
votes
1answer
37 views

Web dev left, can't contact to him, how do I reset root password for ssh so I can access it?

Our lead tech (unprofessionally) left our project, we can't contact him, but I, as a semi-technical project manager have access to our server on Joyent. Our new dev needs to take a look at our running ...
0
votes
1answer
43 views

opsworks/chef databag where to put the json file?

Hello I'm reading this howto: https://github.com/imoglobe/opsworks-cookbooks/blob/master/user/README.md but it does not mention where to put the data bag in the cookbook with the list of users in json ...
0
votes
2answers
60 views

Default SSH credentials for CoreOS?

I am trying to play around with CoreOS, and I just went to their ISO download site and downloaded the latest stable ISO. I then created a new VM instance with that ISO, and it looks like the instance ...
1
vote
1answer
21 views

Two factor athentication on SSH server without root privileges

I want to set up two factor authentication on a server, on witch I don't have administrative account. The purpose of this is: I want to give some other people possibility to create SSH tunnels to this ...
-2
votes
1answer
37 views

connection to ssh server [closed]

How to connect to ssh server on port 22 from behind very restrictive firewall where is only port 80 and 443 available? I tried port mapping on my ssh client but it says it can map local port higher ...
1
vote
2answers
84 views

MySQL with bind-address - possible to create an ip exception?

If you set the bind-address to 127.0.0.1 in my.cnf is there any way to manually allow connections from a specific ip address? Mostly my database is accessed by the server it is hosted on, but I also ...