sshd is the SSH daemon which responds to incoming requests

learn more… | top users | synonyms

1
vote
1answer
82 views
+100

CentOS SFTP chroot

I've some issues chrooting an SFTP access for a client. I can access the directory, but the problem is I can't read / write, I can just access the directory. Below is what I've done : # cat /etc/...
1
vote
0answers
25 views

how to prevent sshd from interpreting remote command as a user

I set up a dedicated ssh key pair for the purpose of forcing a specific command on a remote server. I added the public key to the remote server authorized_keys file along with a command option ...
-1
votes
0answers
11 views

are SSH public keys automatically created and transferred with first contact?

so i just sent up an SSH server on my ubuntu server to transfer files between it and my other machines. now when i connected both ways, RSA public keys were created and stored it automatically. i ...
0
votes
2answers
22 views

Passwordless authentication not working

I am trying to setup a passwordless authentication between my webserver & a reporting server using the below steps. It works fine in my dev environment , however in the customer environment it ...
0
votes
1answer
19 views

SSHD taking random port

I had configued OpenSSH in my windows server for port 22. But each time it is taking random port and as the random port is not active, the connection is getting closed. sshd: PID 7148: Connection ...
0
votes
0answers
17 views

How to get rid of “Authenticated with partial success” message when using two factor authentication

On my linux machine I am writing a PAM module for two factor authentication (https://github.com/kb100/signal-authenticator). It works on an opt in basis so if a user doesn't have a ....
1
vote
1answer
95 views

SSH Automatically Disconnects After Login

I'm trying to set up an ssh server using OpenSSH on Windows 10. On one of my computers, I've been able to set up the server and successfully login from the same machine. On the other computer, the ...
1
vote
0answers
59 views

Force OpenSSH server to accept nonexistent usernames?

Can sshd be configured to accept a nonexistent username and log in as a predefined user, such as guest? For example, if I enter ssh nxuser123@localhost, sshd should save "nxuser123" in an environment ...
0
votes
1answer
57 views

How to install secure OpenSSH server on Ubuntu?

I want to install OpenSSH server on Ubuntu. How to do it? I need to do the following: Set up OpenSSH server Set up ssh public-private key pair for user Disable password login Enable root user Set ...
1
vote
1answer
26 views

Connect trough Cygwin without being asked for password

I'm trying to connect to a remote machine using Cygwin, the connection is successful problem is that it always asks me for the password. ssh -i ~/.ssh/id_rsa -o "StrictHostKeyChecking no" user@...
2
votes
1answer
342 views

Error enabling sshd on Ubuntu 16.04

I just installed Ubuntu Server 16.04 on a virtual machine and then installed openssh-server. When I tried to enable sshd: systemctl enable sshd.service I got this message: Failed to execute ...
0
votes
1answer
47 views

Yet another “ssh agent forwarding not working”

I can ssh from hostA to hostB and from hostA to hostC using keys loaded into ssh-agent without any problems. However, if I do ssh -A hostB from hostA, then try ssh hostC from hostB, public key ...
2
votes
0answers
151 views

sshd on cygwin: connection reset by peer

I installed inetutils on my cygwin this afternoon, and since then my sshd hasn't worked anymore. Here's the message from ssh client $ ssh localhost sh_exchange_identification: read: Connection reset ...
0
votes
2answers
124 views

script to ssh multiple servers with different password

I have a script that executes same commands on multiple servers via ssh . spawn ssh [lindex $argv 0] send "sudo /usr/sbin/useradd ytkatchen" expect "password:" send "Unix\@999\r" My password is not ...
0
votes
2answers
177 views

Putty Remote Port Forwarding not connecting - Server refused?

So im at work and we have port 80/443 blocked. Im trying to get access to the internet via SSH Tunnel. Im currently connected to a VPN that gives me access to the external network but of course i cant ...
0
votes
1answer
201 views

SSH: Connection closed by remote host

Here's the setup, I have four machines: A: An Ubuntu box, acting as the ssh client; B: An iMac under El Capitan (OS X 10.11), the ssh server I want to connect to; C: Another iMac under Mavericks (OS ...
0
votes
2answers
55 views

As an unprivileged user, how can I configure sshd to allow only specified commands to be executed when it's autheticated with a password?

I usually log in to a SSH server (where I'm an unprivileged user) by using my public keys. I also use authentication by a password when I use the server as a git-annex repository. What I want to do ...
0
votes
1answer
51 views

SSH cannot login from a specific user

I am trying to connect from userA1@hostA to host userB1@hostB using ssh. I added the content of .ssh/id_rsa.pub file from userA1 to .ssh/authorized_keys file of userB1. Set authorized_keys and ....
2
votes
1answer
39 views

SSH - PasswordAuthentication no has no effect

I'm trying to configure my server to disable password authentication, I'm using keys now. The problem is that PasswordAuthentication no is set, but it has had no effect. I'm still prompted for a ...
0
votes
0answers
47 views

ssh-copy-id not working on specific server

I have a server running Ubuntu. I'm not able to grant access to any client using ssh-copy-id: This is part of the sshd_config file in the server RSAAuthentication yes PubkeyAuthentication yes ...
1
vote
1answer
278 views

SFTP: Connection closed

I'm trying to connect via sftp to my Synology NAS 215j running sftp server. The sshd works great for root user, but when I do sftp as root, I'm getting Connection closed just after typing correct ...
1
vote
1answer
224 views

how to make non-root user to ssh using key instead of password?

I've recently purchased the Synology NAS 215j and having problems with SSH. Root user works as expected I've added my public key to /root/.ssh/authorized_keys... Problems with non-root user: sshd ...
0
votes
1answer
172 views

deny ssh from all except 1 IP and allow root from everything

I was able to deny ssh to my server from all ip addresses except 1 by entering sshd: all in /etc/hosts.deny and sshd: x.x.x.x in /etc/hosts.allow (ip hidden) but I want to add an exception ...
0
votes
1answer
100 views

SFTP not switching to password mode

Two servers, synced configs and ssh keys. When connecting to the destination, first server switched to the password mode: debug1: Authentications that can continue: password,publickey,keyboard-...
1
vote
0answers
99 views

Can I put a 9.5 mm SSHD disk in an only 7 mm laptop HDD slot?

Can I put a 9.5 mm SSHD disk in an only 7 mm laptop HDD slot? Putting bigger drive in smaller slot? I have a Lenovo flex 2. It's hdd model is a slim WD Blue WD10SPCX with 7 mm height. Unfortunately ...
1
vote
2answers
36 views

How can I make a one-shot sshd process?

I'm trying to find some invocation of sshd (OpenSSH on Ubuntu) that accepts only one connection, and then terminates the sshd process when that one connection closes. I see nothing in the sshd docs ...
1
vote
0answers
480 views

How to set up OpenSSH (server) on Windows 7?

What is the proper way to install OpenSSH (using the latest binary from mls-software) on Windows 7 and configure it to enable remote users to connect via password of public key authentication? I ...
0
votes
1answer
449 views

Can't get sshd_config Match User to work

Am exploring ssh on my el capitan laptop and have managed to get key-based login to work (using an account called adminuser). I now want to see if I can get another administrator account (called ...
0
votes
1answer
46 views

AllowUsers with nothing following it in sshd_config file?

I have no way of testing this and can't find the answer online. If I put AllowUsers in my sshd_config file with nothing following it would the behavior be to allow everyone to SSH into the computer, ...
0
votes
0answers
17 views

ssh 'reverse tunnel' causing blocked port when connection goes bad

I have to have access to a computer behind a NAT. I use ssh reverse tunneling to accomplish this. For some reason, the destination server, which is not behind a NAT, ends up with a blocked port if the ...
0
votes
0answers
110 views

OpenSSH Windows 7 Public Key Authentication

I installed OpenSSH on a Windows 7 machine as LOCAL_SYSTEM account as the option and also allowed key size of 2048. I am able to connect using Windows login however when i implement Public key ...
0
votes
0answers
192 views

Cant access my device via SSH over internet

im running sshdroid server on my android device at port 22 and i get this while i use my pc to connect to it via ssh (LAN) root@kali:~# ssh -l root 100.107.219.116 The authenticity of host '100.107....
1
vote
3answers
120 views

SSH over public LAN?

I am using two laptops (OS X and Windows 10) at a Starbucks and want to transfer a file from one to the other without using a USB flash drive. It is a large file so I don't want to send it over the ...
1
vote
2answers
31 views

Can I know what others login via ssh have done and what they are doing on my Linux?

As a root user, can I know what other ssh-login users have done and what they are doing on my Linux?
0
votes
0answers
82 views

Why would Putty SSH hang even when another connection is fine?

This started some time a few days ago. I connect via Putty SSH from home in Chicago to a Linux server on AWS EC2 us-east-1 to do some scripting work on the command-line. Chicago to us-east-1 is a ...
0
votes
0answers
33 views

sshd: may ~/.ssh directory be symlinked

All the home directory dotfiles are symlinked into a repository, including the .ssh/. ssh seems to work fine, but I'm unable to connect to my server, if it is using the same setup. Tried changing the ...
-1
votes
1answer
166 views

Can't run sshd on a different port with command line (inside docker)

I want to run sshd inside a ubuntu docker container on a different port than 22 (for a tunnel). I executed the commands from https://docs.docker.com/examples/running_ssh_service/. The first time i ran ...
1
vote
0answers
172 views

SSH connection closed after SSH2_MSG_SERVICE_REQUEST

My SSH connection is being closed just after this message: debug1: ssh_dss_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: ...
0
votes
0answers
79 views

Compiling OpenSSH without “consolekit.patch”

I'm currently encountering issues with some tools that connect via SSH to a remote machine (Eclipse's remote deployment) to deploy files automatically. Around 90% of the time, when I initiate the ...
2
votes
1answer
150 views

libssh2 - Agent Forwarding not working

I am using libssh2 library to ssh connections in my mobile application. Here I want to use Agent Forwarding support. I have followed same procedure as they have provided in example here LibSSH2 Agent ...
4
votes
2answers
384 views

How to start ssh server on different port?

I want to start ssh server on port 21 (for one of my local hosts). OS X Yosemite (10.10.4) I've changed /etc/httpd_config by adding: Port 21 Then restarted server: sudo launchctl unload /System/...
0
votes
1answer
96 views

SSH ClientAliveInterval specific to a user

I would like to know if there is a way to define different ClientAliveInterval and ClientAliveCountMax for different users. For example, I have users that can access the shell and want to set ...
7
votes
3answers
1k views

SSH Agent loses identity while restart machine

After creating keys with name id_rsa at it's default location. I am adding identity to SSH agent with command ssh-add ~/.ssh/id_rsa, It's adding successfully. I can SSH without entering pass phrase ...
4
votes
1answer
3k views

How to do SSH agent forwarding on Mac terminal?

I have checked many tutorials regarding this but not getting clearly. As per tuts, there are two way to configure for agent forwarding in your config file ~/.ssh/config set Host example.com ...
0
votes
0answers
12 views

SSH block second level connection

I have 3 Linux environments, lets say L1, L2 and L3, I want to be able to SSH from L1 to L2 and from L2 to L3 but I want to block a user from second level connection i.e. The user who does an ssh ...
0
votes
1answer
952 views

Can't Change SSH Daemon's Port Number under CentOS 7

I've upgraded my VPS to CentOS 7 from CentOS 6. Back when I was running CentOS 6, simply changing the port number of the SSH daemon under /etc/ssh/sshd_config used to make my remote SSH connection ...
0
votes
1answer
549 views

Cannot connect to Google Compute Engine instance via SSH

i am new to google cloud,i just deployed my first instance it was working fine till yesterday, i used last time to set email server using this tutorial email server, but now i am unable to connect ssh ...
1
vote
1answer
150 views

connecting to host running ssh2 server using ssh client

I am trying to connect to a linux host( target_host) running sshd2 using a ssh client( client_host) ;While doing so I converted the pub key of client_host as ssh-keygen -e -f id_rsa.pub > ...
1
vote
2answers
274 views

Allow SSH direct Root user login to particular IP addresses

I have configured ssh login disable direct root user, configuration are, /etc/ssh/sshd_config Port 1845 PermitRootLogin no AllowUsers SKBFSXDWA I would like to direct root login to specific ...
0
votes
0answers
115 views

How can I do ssh or scp without restarting the sshd service

I had a problem related to ssh about a week back -- Ssh/Ping Problems in Mac Yosemite through wifi but not ethernet. I was able to solve the problem. However, now I am facing another problem, where I ...