the secure shell (SSH) daemon

learn more… | top users | synonyms

-4
votes
0answers
34 views

Etc/SSH/sshd_config: permission denied [on hold]

I am trying to set up an SSH on my PC. It's running Kali. When I try to open etc/ssh/sshd_config using terminal it comes up saying permission denied. Does anyone know why it is saying this and how I ...
0
votes
2answers
55 views

Putty: Access denied

My user id kranthi has been created and added to sudoers group. I've made the following changes in /etc/ssh/sshd_config: PasswordAuthentication Yes AllowUsers kranthi In order to allow a user to ...
0
votes
2answers
22 views

Why are there 2 different fingerprints for ssh depending on what network I connect from?

When I connect to my computer over ssh on the local network, putty fives me the correct fingerprint of ssh-rsa 2048 ad:e3:4c:e3:d0:6f:81:2e:05:94:77:6c:0f:2c:a8:7f This matches the fingerprint on ...
0
votes
0answers
19 views

OpenSSH ForceCommand

I want to disable this kind of command executing: ssh user@host command on my server. Then, I want to run some tests and later invoke the interactive shell What I did I've found in the web that ...
0
votes
0answers
12 views

Journalctl stopped logging after being overflowed and rebooted

My pc stopped logging since today 06:54:07: $ journalctl --verify 24af830: Invalid data object at hash entry 4203 of 233016 File corruption detected at /var/log/journal/...
0
votes
1answer
73 views

Running sshd in cygwin: “/var/empty must be owned by root…”

I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by ...
1
vote
4answers
52 views

Check if logged in user via SSH did go through Active Direcory

I'm trying to check if a user who connects to a linux server via SSH is authentificated using Active Directory (Centrify). In case he uses a local account (located in /etc/passwd), I need to display ...
0
votes
0answers
26 views

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/...
0
votes
0answers
30 views

SSH Connectivity Issue on AWS EC2 after trying to mod fstab and checking sshd_config

I cannot for the life of me connect back into an EC2 instance based on Amazon Linux AMI 2016.03.3 (HVM). After initially creating the server, logging in and installing docker, jenkins etc... I had ...
1
vote
0answers
57 views

How to send sudo password over pipe? [duplicate]

I need to replace existing sshd config on the remote PC and restart sshd, so I try to use this: cat /sshd_cfg | ssh user@192.168.0.47 "cat > /etc/ssh/sshd_config && service sshd restart" ...
2
votes
0answers
74 views

ssh connection to OSMC fails after giving the correct password

I have a freshly setup Raspberry Pi 3 with OSMC; I can't login via ssh. I can open a shell when using my wireless keyboard, sudo -s works, and AFAICS, WiFi connection is fully functional, including ...
0
votes
1answer
31 views

SSH DNS lookup on local IP addresses [duplicate]

As I have come to understand, SSH always goes through the process of reverse DNS lookups whether you are connecting to user@example.com or a local server calleduser@192.168.0.56. I do not know, ...
0
votes
1answer
49 views

SSH takes too long to ask for password

I've seen many other questions on this subject but none seem to actually solve my problem. Like any other day, I connect to my LOCAL Raspberry Pi server from my client machine at 192.168.0.5 with ssh ...
3
votes
1answer
43 views

Ignore sshd inhibitors when rebooting

On my home PC, I set up sshd as an SFTP server so I could share files with my friends. However, when I attempt to reboot and someone has an SFTP client connected, I get the following message: $ ...
0
votes
1answer
113 views

SSH Tunnel “channel x: open failed: connect failed: Connection timed out”

I've Googled and searched far and wide for some sort of "solution" to this problem; however, the best answer I got is "There's nothing that can be done." Of course, that's unsatisfying, so here goes: ...
0
votes
1answer
47 views

Can't SSH (connection refused) [closed]

I'm trying to set up a headless machine running manjaro. I install and enable openssh, and can ssh localhost, but can't ssh by another machine. Plus, if I modify the /etc/ssh/sshd_config I cannot even ...
1
vote
0answers
22 views

setting up sftp users only second instances of sshd

I created second instances of sshd called sshd-sftponly and using different port (e.g 2222 ) and made all necessary changes in /etc/rc.d/init.d/sshd-sftponly and /etc/ssh/sshd_config-sftponly ...
0
votes
1answer
51 views

ssh on linux harden server

Here I am dealing with a linux harden server. The problem I am facing is that when I try to connect via ssh, an error message pops out. kex error : did not find one of algos diffie-hellman-group1-...
1
vote
1answer
18 views

Can not succeed in excluding user in match directive in SSHD config

I’m having a problem with my sshd config. I want to limit all users of the group www-user to sftp use. All of them but the user yorunokoe. I saw that related question : How to exclude from a "...
0
votes
1answer
59 views

sshd AllowGroups group not granting access

I have this weird situation: On a Centos 6.6 box, in my sshd_config, I have the line AllowGroups foo bar baz just like on all the other servers. However, when user baz (whose group is baz) tries to ...
0
votes
1answer
64 views

I have to restart sshd every time I reboot

I have an arch machine that I use as a local server. It used to be that every time I rebooted it (which was not often), I had to login and enter # dhcpcd net0. After that, I could ssh into it from my ...
-2
votes
2answers
60 views

Why does running a Cron Job as root stop the sshd service and disallows login for other users?

I have a script for getting Clamav updates from another server which I run as a Cron job as root. Also, I have root login disabled for /sbin/nologin. But this has serious implications on the system as ...
1
vote
1answer
144 views

Being Prompted for Password After Already Registered Public Key On server [closed]

NOTE: This is not a duplicate to the popular question. Why am I still getting a password prompt with ssh with public key authentication? I had an original post but I did not get much answers helping ...
3
votes
2answers
71 views

How to make ssh account capabele to only sshfs and rsync?

I'd like to make ssh account that is capable of doing two things: mounting (can be one) directory via sshfs performing backup&recovery of his/her desired directories using rsync I would love ...
0
votes
0answers
23 views

ssh warning banner on centos 6.7

I am using the kick start installation for my centos 6.7. After installation, the output of mount command looks like below: proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/...
2
votes
2answers
42 views

sshd: Problem disabling password authentication from outside LAN

I have a CentOS 7 server with 2 NICs, one inside the LAN with a private IP 192.168.1.1 (lan0) and one with a public internet IP (ppp0) For connections originating from inside the LAN I want password ...
1
vote
2answers
78 views

unable to SSH to eth1 after bringing down eth0

I have a remote machine with 2 interfaces: eth0 and eth1. I am able to ssh using eth0 ip address as well as eth1 ip addr. However, things go strange once I bring down eth0 using the command ifdown ...
0
votes
0answers
54 views

Why would my putty key be refused “server refused our key”, but works on next attempt?

I use PuTTY, and I use a key generated with PuTTYgen. My server is a VPS running Ubuntu 14.04 (perhaps this belongs on askubuntu, but I think it may not be Ubuntu specific). The public portion of the ...
0
votes
2answers
78 views

How to suppress debug2 messages during SSH session?

When I am logged into my home Linux machines via SSH, I get the following debug output a few times every minute: debug2: channel 0: request window-change confirm 0 When I am editing files in nano, ...
-2
votes
2answers
39 views

linux + ssh login took time from one server to another

I have a central Linux server (Red Hat version 6.5), and from this server I establish SSH sessions to other servers. To one server the SSH login took around 5 seconds, while to all others it took ...
3
votes
1answer
45 views

Remove any ssh-keygen commands from init scripts

I'm running Ubuntu 14.04 64 bit server. I'm following this guide: Secure Secure Shell https://stribika.github.io/2015/01/04/secure-secure-shell.html It includes the instruction: remove any ssh-...
2
votes
1answer
45 views

In journald, why are some sshd log entries not attributed to ssh.service

When using journalctl to inspect my journald logs the output from the commands journalctl -u ssh.service and journalctl _COMM=sshd differ. The first command produces just a subset of the log ...
0
votes
0answers
22 views

Testing OpenSSH Logging

I'm attempting to turn on logging inside OpenSSH running in an Alpine Docker container. I made sure to install rsyslog and start the daemon with /usr/sbin/rsyslogd. My sshd logging settings are as ...
0
votes
0answers
56 views

sshd error: no more sessions

I see many lines in /var/log/auth.log about sshd sessions, like below Mar 25 11:04:47 hosting-prd sshd[7882]: error: no more sessions Mar 25 11:04:47 hosting-prd sshd[7882]: error: no more sessions ...
0
votes
2answers
77 views

SSH always connects to the same IP address [closed]

No matter what the host is, SSH keeps trying to connect to 162.13.177.241. Command ssh -v user@host Output debug1: Connecting to 162.13.177.241 [162.13.177.241] port 22. My /etc/hosts file is ...
0
votes
0answers
44 views

ssh PrintLastLog prints actual login

I connect with my server via ssh and always it shows the last log: Last login: Sat Mar 19 14:05:17 2016 from... but that login is my actual login. What's the utility of this info? It should print the ...
1
vote
1answer
54 views

SSH tunnels force new tunnel and kill old session

This is the situation: I have a Linux server running Ubuntu server 14.04 to which multiple computers connect and authenticate with SSH and try to open a reverse tunnel. These computers usually do not ...
0
votes
1answer
57 views

reading the output of netstat for tcp

If I ssh root@server -R 5901:localhost:5900 and netstat -an I get: Active Internet connections (servers and established) │ Proto Recv-Q Send-Q Local Address ...
0
votes
1answer
76 views

How can I restrict multiple groups or users to specific folders with SFTP? [duplicate]

I know how to restrict users of groups to their home folders and remove terminal access, but I cannot seem to get it working for multiple groups. I have two groups: groupA groupB My sshd_config ...
1
vote
0answers
77 views

Slow SSH connection on embedded platform

I am operating an embedded device running the linux core. I have OpenSHH_4.9p1 installed running in debug mode and trying to establish an SSH connection using PuTTY. After the login screen everything ...
0
votes
1answer
22 views

2 Factor Authentication in SSH using public key and yubikey

I'm trying to setup 2 Factor Authentication. I want to login via 2 methods: Public Key > YubiKey Password > YubiKey And now I have this done, but I want to specify what users can login via ...
1
vote
0answers
158 views

Freeradius PAM create user and home on login

At this moment i have installed freeradius and PAM radius properly. When i create an account on the system and set a password in /etc/raddb/users.conf the user can login. Sudo also works great with ...
3
votes
0answers
65 views

Cant SSH in to cloned EC2 server from public network [closed]

I created a new AWS EC2 instance, using the AMI image, configured it to my liking, and saved an image, (Call this svr01). Then I created another EC2 instance, using that same image ((Call this svr02). ...
3
votes
1answer
67 views

kill user who is idle for more than 3 hours

I have a user who logs in via sftp but he opens a lot of sessions and keep them opened. This will make ssh and sftp very slow for all other users. I thought about using ClientAliveInterval number ...
1
vote
2answers
83 views

Forward ssh for git user to git server

It is surprisingly difficult to find information on this simple problem. Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
2
votes
1answer
55 views

enable access via ssh-key without using ~/ssh/authorized_keys

i want to enable access to a home dirs via ssh/scp with an key. Normally i would place the pub key into ~/ssh/authorized keys But i want disable the ability to add or remove ssh-keys (turn off ~/...
1
vote
1answer
132 views

Make sshd override login shell of a group of users

My users are shared across a number of machines via LDAP. For one of those machines (let's call it 'fileserf'), I would like to restrict some users in what they can do (actually: prevent them from ...
0
votes
2answers
229 views

Why does SSH server say, “authorized_keys is not a regular file”?

I've been trying to configure the login with a key generated from puttygen so I can disable password authentication. I saved a private key from puttygen and copied the public part to my .ssh/...
1
vote
1answer
183 views

SSH/SCP Connection problem | Lost connection

We are unable to ssh or scp to a particular host, SSH Connection hangs for a while and then gets disconnected and we get this error "Lost connection" All the hosts are CentOS 6.7 Openssh version ...
1
vote
1answer
304 views

How can I restrict SSH login on CentOS 7 to Active Directory groups? [closed]

I've successfully added CentOS 7 to AD and can login locally or SSH with domain credentials before I try restricting login. I'm using the AllowGroups flag in sshd_config and this works if I specify a ...