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
3answers
219 views

Allow SSH but disallow SFTP?

Requirement: Allow SSH but disallow SFTP to a particular user group. Once disallowed, if the user group tries to access SFTP, it should not be allowed and all connections should be closed and the ...
-1
votes
1answer
33 views

Cannot sftp using a password

I have setup my server to allow sftp using a password however I'm getting Authentication failed. even though I'm using the correct password. Here is my sshd_config # Package generated configuration ...
2
votes
2answers
1k views

Ubuntu server closing connection after successful login

I am unable to logon to my Ubuntu (12.04 LTS) server via WinSCP or sftp. There was previously a permission problem for ssh_host_* files in /etc/ssh. This was after I tried chmod -R from another ...
6
votes
1answer
2k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...
-1
votes
0answers
9 views

virtualbox network while connect vm to vm [on hold]

I need to setup vpn connection between one virtualbox machine to another virtualbox machine. both virtuval machine connected in different machine For Example : System A Connnect Virualbox machine ...
4
votes
1answer
1k views

Multiple Reverse SSH Tunnels using Single Port

I am able to accept reverse SSH connections from multiple remote systems on a single server using a port for each connection: Remote A: ssh -fN -R5000:localhost:22 user@server-ip -p22 Remote B: ssh -...
1
vote
1answer
20 views

DH GEX group out of range

I'm having a sudden issue SSHing into my server: ssh -v --@-- OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips 1 Mar 2016 debug1: Reading configuration data /home/paul/.ssh/config debug1: Reading ...
1
vote
2answers
500 views

Duplicity - how to put passphrase in command?

I've tried a number of obvious commands as detailed in Duplicity Man page to do this but it doesn't seem to work. Scenario I'm SSH'ing to a machine, then running Duplicity; below is the command, of ...
0
votes
0answers
11 views

Restrict access to Linux via PAM with configured SSO

i have SLES 12 in Active Directory Domain. Single Sign On for SSH is configured. I want to allow access to server only to some AD groups via PAM (not only for SSH Service, ftp, etc.). I tried to add ...
2
votes
1answer
1k views

connect-to-oracle-db-9i server-using-ssh-tunnel-via-putty

I am trying to connect ORACLE DB behind NAT so i choose SSH TUNNEL via putty so here is the information Global i p example: 122.54.34.12 LAN i p example : 192.168.3.103 ORACLE DB_PORT : 1521 and ...
2
votes
2answers
2k views

Adding a new user into linux from a script

I am using a customized Redmine installation to manage projects. I have managed to hook the addition of new users and send the login information to a bash script I have. Below is my script: #!/bin/sh ...
1
vote
3answers
1k views

Best tools for “ssh tail -f” style log file monitoring and analysis [on hold]

I'm looking for a tool to monitor custom PHP Error logs/Apache and possibly Java logs on remote development servers. I'm not looking for a full production log system like Splunk, but something that's ...
0
votes
0answers
13 views

Run FNDLOAD command on unix server from windows using Jsch

I'm trying to run an FNDLOAD command using Jsch after connecting to my unix server through ssh. But the command is giving me the following error bash: FNDLOAD: command not found Also if I try to ...
-2
votes
0answers
17 views

Alternative to SSH for remote port forwarding [on hold]

Looking for an alternative to SSH port forwarding that doesn't use the encryption over head. I'm on a slow line with limited computing resources. I banged my head with socat, and it doesn't seem ...
1
vote
0answers
484 views

Amazon EC2 pem file stopped working suddenly

I was connecting to Amazon EC2 through SSH and it was working well. But all of a sudden, it stopped working. I am not able to connect anymore with the same key file. What can go wrong ? Here's ...
5
votes
4answers
6k views

Is it possible to connect a EC2 Linux instance via ssh without the key pair?

I can connect to my EC2 Linux instance via ssh using the key pair (*.pem). Is it somehow possible to connect it with ssh with out the pem file?
-1
votes
1answer
37 views

Server under attack [on hold]

I've got a DigitalOcean Debian server. And since yesterday the CPU has been at 100%. I use it for testing at the moment. I'm a newb with servers, so really got no clue what to do. Can someone ...
0
votes
3answers
2k views

Applications to tail httpd logs over ssh in windows besides a ssh terminal [closed]

I'm looking for something like baretail with ssh support or the ability to read from standard input so I can pipe the output of plink. Does anyone have any suggestions.
0
votes
1answer
17 views

remote script execution from local script linux doesn't stop for remote script prompts

script abc.sh is on machine M1 and xyz.sh is on machine M2 script abc.sh: #!/bin/bash ssh -l user1 host.com ./xyz.sh -b1 arg1 -b2 arg2 script xyz has certain user prompts like pwd etc When I ...
0
votes
1answer
1k views

How can I enter a passphrase in command line using git?

I am using git in my development environment. When I run the command git pull origin master is there any way to pass the passphrase from the command line.
6
votes
5answers
9k views

SSH access problem: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server XXX ON Amazon EC2. SSH is running on a standard (22) port. I placed my pubkey at the /.ssh/authorized_keys file The fun thing is that YESTERDAY it was working great! But today, I ...
2
votes
2answers
27 views

What are the disadvantages when using two-factor authentication on SSH like Authy-SSH?

I'm considering to setup Two Factor Authentication on my SSH accounts (OpenSSH, Ubuntu). I was looking into Authy-SSH but I'm wondering what the possible disadvantages are? Also, can I lock myself ...
-1
votes
1answer
14 views

rsync to remote ssh or to local iscsi

I'm curious of anyone knows a link to or can elaborate upon this design question: I have a server that I would like to make a backup copy of data from. I have a second server that is iscsi-enabled. ...
0
votes
0answers
13 views

Why is my sshd looking for a wrong kvno in keytab?

My FreeBSD box is using Heimdal Kerberos-implementation. It is registered with the corporate AD, its msDS-KeyVersionNumber-attribute is set to 2, and its keytab has the following entries: FILE:/etc/...
-4
votes
0answers
29 views

SSH keys rotation on multiple servers [closed]

I am wondering how to solve over 100 SSH keys rotation on multiple servers, since I would like to keep this task as simple and as short as possible. I was thinking about using Ansible to automate ...
3
votes
1answer
72 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 ...
30
votes
7answers
6k views

SSH: Two Factor Authentication

I currently have a Ubuntu Server 12.04 running OpenSSH along with Samba and a few other services. At the current time I have public key authentication set up, and I'm wondering if it's possible to set ...
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 (...
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
1answer
9k views

Able to connect by SSH, but not x2go

I am having trouble connecting to a remote server with X2GO using a DSA key. Connecting works fine over SSH, but when I try to connect with X2GO, it goes immediately to the username/password box and ...
0
votes
0answers
23 views

Install Bash + openSSH on Windows Server 2012

I had to create a Virtual Machine with Windows Server 2012. Now I want to connect to it via OpenSSH and Bash, installing OpenSSH is successful, however when I connect to the server via ssh ...
0
votes
0answers
7 views

Is it possible to change ownership of root directory for NFS mountpoint? [duplicate]

I have an NFS share and OpenSSH server. What I'm trying to achieve is to jail SSH users in the mountpoint for the share. The problem is that OpenSSH server requires all directories within a path of ...
0
votes
1answer
22 views

SSH: hangs after “connection established”

I have an AWS EC2 instance to which I can't connect through one of Ubuntu servers. However, I can connect to the AWS instance through any machine(with and without private SSH key), but Ubuntu server ...
0
votes
0answers
10 views

kerberos - active directory domain trust - SSO only working for linux machines

I have an Active Directory Server (2008r2) and a MIT Kerberos Server. Between the realms "AD.EXAMPLE.COM" and "INTERN.EXAMPLE.COM" is a two-way transitive trust, set up on the windows-side with the ...
0
votes
1answer
54 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
0answers
28 views

gitlab asks password when cloning with ssh

I'm very desperate at this point, spend way to much time on this. I have a gitlab running on digital ocean with the one click install. Everything runs great.. I can clone a repo with ssh on my laptop ...
1
vote
2answers
658 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
0answers
18 views

How to backup automatically File and Database from cpanel to Local Computer? [closed]

Recently I losed my all files and database due to my server provider terminated my server due to heavy bandwidth use, I dont have backup for recent edited file and database and i dont have time to ...
1
vote
0answers
12 views

xdebug remote centos host from mac

I have a server running CentOS7, PHP7.0.7 with php-fpm, and SELinux. I am trying to debug a PHP script running on that server. And I have a Mac machine that runs PHPstorm where I intend to do the ...
0
votes
1answer
21 views

How to limit access from host to docker container

I am new to docker. I setup a container which run a web application at port 3333. it works well. By default we could access container bash from host without password. I share the host machine with ...
0
votes
0answers
37 views

What is the correct way to configure match rules in sshd_config?

I'm configuring Match rules in /etc/ssh/sshd_config . Whenever I add more than 1 match rule and after restarting SSH ofcourse, I'm getting locked outside of the machine with the following error: [...
-1
votes
3answers
51 views

Bad ssh config on remote server. Cannot login in

I accidently changed ssh_config instead of sshd_config on a remote debian machine. Whenever i try to loging, i get /etc/ssh/ssh_config: line 55: Bad configuration option: permitrootlogin /...
4
votes
2answers
2k views

TigerVNC + SSH without a VNC Password?

I have a RHEL 6 system with TigerVNC installed. It is configured to only allow VNC connections through SSH. Thus, a user can only connect to VNC if they successfully establish an SSH connection to ...
0
votes
0answers
29 views

Home Directory Permissions - Google Cloud Compute

I've setup a Linux (Centos) instance on Google Cloud Compute, I've also setup SSH as described here - https://cloud.google.com/compute/docs/instances/connecting-to-instance. I and can now connect ...
0
votes
1answer
16 views

Can I establish an SSH tunnel to elasticbeanstalk instance?

It is possible to SSH to elasticbeanstalk with eb ssh <instance>, but it doesn't seem to be possible to create a tunnel with this executable. How can I do it, if at all?
1
vote
1answer
27 views

Why is module os_keypair not returning private_key?

I am deploying to Rackspace Cloud with the OpenStack ansible module. I am facing an issue with the SSH keypair creation. It creates the public key, and installs it on the host. However I can see that ...
0
votes
1answer
27 views

SSH to other Azure Linux Servers from jump server

I provisioned a stack of VM's and during the process I elected to create a jump server. Now I am on the jump server trying to connect to other machines via SSH but I keep getting an error stating that ...
0
votes
0answers
12 views

Running socket.io server on shared hosting with ssh access

I have a VPS server with DirectAdmin installed, hostname would be hostname.com for example. I created an account with the domain socket.hostname.com . Now I want to create a running node.js server ...
0
votes
1answer
47 views

Stop and prevent brute force attacks on Ubuntu 14.04

I've currently 3 servers with SSH service being attacked by brute force. The attack is from multiple sources or one who's changing his IP with each attempt performed. I need help to stop current ...
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 ...