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
0answers
4 views

SLES12, Authentication with PAM and LDAP

I want to set up an ssh-server which can authenticate against a ldap-server. The ldap-server is already running (openldap). Now I've installed a fresh SLES12SP1-Server and followed some tutorials for ...
1
vote
4answers
9k views

How do I SSH tunnel using PuTTY or SecureCRT through gateway/proxy to development server?

We have some unix boxes setup in a way that to get to the development box via ssh, you have to ssh into a 'user@jumpoff' box first. There is no direct connection allowed on 'dev' via ssh from anywhere ...
-1
votes
0answers
13 views

Amazon EC2 Linux setup SFTP user with password and no SSH access, limited to their own directory [on hold]

Using Amazon Linux I want to: Have a client SFTP into a specific folder to upload their files. They shouldn't be allowed to access any other folder except for their own The login must use user/...
1
vote
1answer
15 views

Connect to RabbitMQ (Amqp) via ssh gateway

I have the following situation: DevMachine (D) need to connect to a gateway/bastion server (G) and then be able to talk to another server serving RabbitMQ (R) traffic on port 5672. I tried using ...
0
votes
0answers
26 views

Unknown ssh connections found in lsof -i has my server been compromised?

I have a Digital Ocean droplet running Ubuntu 14.04. I use it for running quick node.js tests on a publicly available server. I just logged in via SSH and did $ lsof -i to see what ports I was using. ...
12
votes
6answers
42k views

SSH issues: Read from socket failed: Connection reset by peer

I compiled OpenSSH_6.6p1 on one of our server. I am able login via SSH to the upgraded server. But I am not able to connect to other servers running OpenSSH_6.6p1 or OpenSSH_5.8 from this. While ...
5
votes
4answers
3k views

Tunnel an ssh connection through an intermediate machine in a single command

Is there a way, in a single command, to establish a ssh connection from my computer A, through computer B, to computer C, such that I have access to the shell on computer C? A wrinkle (which seems to ...
0
votes
1answer
20 views

How do I SSH to my remote machine through another machine? [duplicate]

I want to connect my remote machine via ssh, and I must connect to a proxy and in that proxy machine to connect my remote machine(remote machine is in the LAN of proxy machine, and it dosen't have a ...
1
vote
1answer
3k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy (...
4
votes
3answers
1k 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 ...
1
vote
1answer
4k views

Centos set default ftp directory for a user

I am setting up accounts for people to connect to the server through ssh and SFTP. When I test the login, it goes straight to the "/" directory, and I do not want that to happen. I want to make it so ...
1
vote
0answers
22 views

Send build artifacts over SSH - could not create directory

I am trying to workout an automation process of pushing changes from jenkins to aws. The problem seems to be that within the GIT repo, i have 2 folders, one is docroot and the other is database. I ...
12
votes
3answers
7k views

Trying to get SSH with public key (no password) + google authenticator working on Ubuntu 14.04.1

I'm using Ubuntu 14.04.1 (with OpenSSH 6.6 and libpam-google-authenticator 20130529-2). I'm trying to set up SSH logins where the public key authenticates (without a password) and a user is prompted ...
16
votes
1answer
8k views

Add comment to existing SSH public key

I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
3
votes
6answers
5k views

SSH doesn't ask for password, gives “permission denied” immediately

Trying to SSH using a user account; root account works but I am specifying a private key. User account simply gives "Permission denied (publickey,gssapi-with-mic) without prompting me for my password ...
0
votes
0answers
6 views

Conecting To Amazon EC2 through seperate wifi at same time using Ethernet for HTTP Traffic [on hold]

I am currently in a university Network which allows connection to INTERNET via HTTP/HTTPS proxy . which looks like 10.3.100.207:8080 All I needed is to connect to Amazon EC2 Instance via separate ...
6
votes
4answers
2k views

Copying over SSH via Putty tools is slower than via WinSCP

Uploading from my Windows PC (1) to my Ubuntu machine (2) in another city using PuTTY tools is slow. I tested this over OpenVPN tunnel and via port forwarding to (2). It turns out that using rsync (...
3
votes
2answers
5k views

debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

I have two servers A and B. A and B can ssh into each other and other servers but cannot ssh into server C. All servers can ssh into A and B (including server C) The request hangs up at the following: ...
1
vote
4answers
7k views

SSH Tunnel yielding “administratively prohibited: open failed” after a few hours

i have a dynamic OpenSSH tunel running as : ssh -N -D *:1080 user@example.com (OpenSSH_5.3p1 Debian-3, OpenSSL 0.9.8n 24 Mar 2010) which runs perfectly for a few hours, of few days, but begin to ...
0
votes
1answer
56 views

SSH and sudo over a pseudo-tty terminal

I am trying to overcome some limitations in our environment to write up an authorized SSH file for passwordless ssh keys. I am requiring to perform an ssh as a to a target system, and then run a "...
0
votes
0answers
17 views

Accessing a workstation behind a firewall [on hold]

Situation: I have a workstation using school network, and a laptop. I want to be able to (SSH) access my workstation from my laptop from a different network. Problem: School network blocks all ...
0
votes
0answers
12 views

pssh stderr askpass received prompt

I'm using pssh version 2.3.1 on a RHEL 6 server so I can log into multiple clients in a single run and pull down config. While testing out I am getting an error. [1] 14:45:54 [SUCCESS] user@192.168....
0
votes
1answer
22 views

Going back to a running instalation process after being disconnected

I was running an instillation through remote access using ssh shell. and didn't look at the screen for a while(my bad). when I go back to that console I find it was asking for a path like: Enter ...
4
votes
2answers
3k views

How do I associate an ssh key pair with the instance created by a stack in Amazon CloudFormation?

Previously I have created an EC2 instance based on an image. During the creation process the Amazon wizard created a key pair and then provided it to me so I could connect. Now I am trying to use ...
0
votes
0answers
23 views

Cannot SSH into server from only one machine [closed]

So, I have been ssh'ing into a remote VM with a pub/private key auth just fine from one laptop. All of a sudden, I cannot ssh in. When I transfer the certificate to another laptop, it works just ...
2
votes
2answers
21k views

How to shutdown a virtual machine on ESXi5 over an ssh terminal session?

How can I shutdown a virtual machine when I am on the commandline of an ESXi5 host over ssh? Sidenote: To enable scripts on other machines to login to the ESXi without password, add the public ...
0
votes
2answers
2k views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- Errno::...
13
votes
6answers
11k views

Automating ssh-copy-id

I have some arbitrary number of servers with the same user/pass combination. I want to write a script (that I call once) so that ssh-copy-id user@myserver is called for each server. Since they ...
30
votes
2answers
2k views

How to allow ssh to root user only from the local network?

I've installed Google-Authenticator on a CentOS 6.5 machine and configured certain users to provide OTP. While editing /etc/ssh/sshd_config I saw a directive "PermitRootLogin" which is commented out ...
1
vote
2answers
37 views

Ubuntu Server - Make `lastlog` show the hostname rather than the IP address

When logging into Ubuntu Server via SSH, the following line is shown: Last login: Mon Jul 18 20:00:00 2016 from 111.111.111.111 On other serves, 111.111.111.111 is replaced by the hostname me....
0
votes
0answers
15 views

WARNING: Server requests forwarding for unknown listen_port 0

I am trying to create reverse ssh tunnel between machine A and B. Both machines are windows and using Win32 OpenSSH. Here is what I do. On machine A I have a web app running on port 8080 On machine ...
0
votes
1answer
10 views

Accessing to a remote PostgreSQL server using port forwarding to another machine

I try to access to a Server_A on which PostgreSQL is running. This server is on a local network, that's why I have to forward port from Server_B which is accessible and in the same network. To access ...
0
votes
0answers
17 views

semanage to add port, how to make active without reboot

Added a new SSH port using: semanage port -a -t ssh_port_t -p tcp #PORTNUMBER Added the Port to /etc/ssh/sshd_config, restarted sshd, and confirmed with netstat that a service was now listening on ...
1
vote
2answers
15k views

SFTP Error - Couldn't read packet: Connection reset by peer

I try to configure SFTP on Centos 7, on my first server it works perfectly, but on my second server when I try to connect me with : sftp USERNAME@serveripaddress I have this error : Could not read ...
1
vote
1answer
64 views

Ansible deploy multiple authorized_keys on multiple hosts

We need deploy keys on the servers, but trick is that the keys are many and do not all of them must have deploy on all servers. Now we do it follows: in vars roles/authorized_keys/vars/main.yml ...
3
votes
3answers
2k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
-2
votes
2answers
2k views

How can I ssh into a vagrant virtualbox VM from an external machine? [closed]

I'm trying to set up a server on my desktop with vagrant, but while I can ssh (via PuTTY) into the VM at localhost:2222, I can't ssh into it via my local or public IP addresses - even though I have ...
39
votes
9answers
32k views

Allow SCP but not actual login using SSH

Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
22
votes
4answers
19k views

Why is ssh agent forwarding not working?

In my own computer, running MacOSX, I have this in ~/.ssh/config Host * ForwardAgent yes Host b1 ForwardAgent yes b1 is a virtual machine running Ubuntu 12.04. I ssh to it like this: ssh pupeno@b1 ...
4
votes
2answers
1k views

How to set up two-factor authentication with OTP on FreeBSD?

I have a FreeBSD server that I like to be able to get to from anywhere. Normally I use SSH publickey to log in, or if I don't have my SSH private key available then I might use regular password over ...
0
votes
3answers
155 views

Passwordless root SSH on CentOS 6 with public key

I am trying to create a "passwordless" setup so that the remote server is more secure without password + I can automate the login process. I have created a new ssh key with ssh-keygen, and copied the ...
0
votes
0answers
14 views

How to connect to Synology disktation as a normal user (no root) without gui (using linux terminal) [closed]

How can a regular user (no root) connect to a synology diskstation and download / upload files only without root permissions and without using some gui (browser / filebrowser)? I already activated ...
1
vote
2answers
59 views

Cannot ssh with shared keys on CentOS 7 server refused our key

I cannot ssh to a CentOS 7 server using pre-shared keys, I get a "server refused our key" message. Below is an ssh attempt using -vv OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading ...
1
vote
2answers
2k views

SSH connection times out

Given: vm - a WinXPsp3 virtual machine hosted by a Win7sp1 physical machine alice is the user on vm srv - a Win2008R2sp1 server bob is the user on srv quake - a linux server mark is the user on ...
4
votes
1answer
1k views

Git clone from Windows to Windows cannot find the repository

git clone gituser@<server>:myRepo.git doesn't work, fails with the error message: fatal: ''myRepo.git'' does not appear to be a git repository Background: We have a Windows 7 machine set up ...
0
votes
1answer
17 views

Access office URL through browser outside office [closed]

I work as a web developer in a office. I have a linux machine as a work machine. I develop code then test it on a browser. I can only access the URL that I use to test my pages inside my office. I ...
-1
votes
0answers
12 views

directing HTTP traffic through port forwarded ssh tunnel [closed]

Long story short, I need to connect to a server (call it B) located in a secured network. I only have access to one machine (call it A) in this network from which I can connect to B. I need to connect ...
4
votes
0answers
23 views

How to set-up google-authenticator and set specific match rules to allow different login rules?

I'm trying to set Google-Authenticator (google 2 factor authentication). The relevant files are: [root@srv01 ~]# cat /etc/pam.d/sshd #%PAM-1.0 auth required pam_google_authenticator.so auth ...
0
votes
0answers
19 views

SSHD inactivity despite setting all settings

I have a problem where sshd refuses to allow a client with a keepalive less than 30 seconds. Setting the client ServerAliveInterval to anything less than 30 and the connection stays alive forever. ...
0
votes
1answer
1k views

Fabric used to work with ssh-keys, but not anymore

I have my ssh key set up correctly and I can ssh into the remote machine without password. However, my fabric deploy script which could authenticate automatically until a couple of hours ago, started ...