Questions tagged [ssh]

SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How to allow SSH availability checks but restrict login from specific IP? [duplicate]

I need the possibility of monitoring host to check availability of monitored host's SSH port availability via telnet, but at the same time I want to prevent SSH logins from monitoring host. Is there ...
1
vote
3answers
18 views

Detach from tmux session and close ssh session with 1 command

Frequently I want to exit my ssh session without also killing the tmux session I am using. To do this I have to run the following commands: tmux detach exit or alternatively use the shortcut Ctrl+B ...
1
vote
1answer
33 views

Error While Binding Sshd to Port 2222 During Update on Debian 10 “Buster”

Got here following error output while updating: Errors were encountered while processing: openssh-server ssh E: Sub-process /usr/bin/dpkg returned an error code (1) Setting up openssh-server (1:7....
0
votes
1answer
14 views

Port forwarding with iptables not working anymore

I installed SSH honeypot cowrie and configured real ssh to use a different port. The honeypot is supposed to use a port n. Iptables is configured to route traffic from port 22 to port %PORT: ...
0
votes
0answers
17 views

How to open SSH port 22 to connect medusa to my router ip

I've been learning how to brute force my own router password through medusa and I've encountered the following error: NOTICE: ssh.mod: failed to connect, port 22 was not open on 192.168.0.1 note ...
0
votes
0answers
28 views

Can't use remote server because too many open files in system

I'm running some python programs in the background of a remote Ubuntu machine. The program opens too many files that exceed the system limit. I want to ssh to the remote server now, but I can't ...
-1
votes
1answer
20 views

SSH Hardening, what does it mean? Where do I start? [on hold]

Am I supposed to harden SSH specifically? Or to harden security? What would you do if someone just asked you to "Perform hardening on SSH"?
0
votes
1answer
21 views

Sftp Connection Via Gigolo on Debian 10 “Buster”

Trying here to establish sftp connection via Gigolo on Debian 10 "Buster" with Gigolo application, but when connecting at sftp://user@192.168.41.72, for example, receives here Location is not ...
1
vote
0answers
20 views

SSH Fails at “kex_exchange_identification”

I'm trying to connect over ssh to an Ubuntu 18.04 VM running in VMWare on my local machine. Local machine has openssh server up and running. Apple's default ssh binary fails connecting to VMs in ...
0
votes
0answers
17 views

SSH Logins failing for all users, even when using correct password. Can only connect via console using root

So, I have a RHEL 7 server that is IPA joined. Users are not able to login, even when using the correct passwords. I can login through console, but only with root, none of the IPA accounts will work. ...
1
vote
3answers
50 views

ssh not allowing passwordless login

I use passwordless logins all the time and have set it up on numerous systems and have debugged a lot of issues with it. However, I'm in a situation that I can't diagnose the root cause. I have an ...
0
votes
1answer
20 views

“Can't open display” when trying to start X program on a remote machine

I have 2 virtual machines, one running CentOS 7 and the other one CentOS 6.5. I'd like to run an application on the CentOS 6.5 VM but display it on the 7 one. I cannot use ssh -X (or -Y), I have to ...
2
votes
2answers
57 views

How can I unmount root and run Python script that modifies the whole disk using SSH?

I want to connect to a Debian or CentOS device using SSH and modify its whole disk(just one 30 GB disk that has 5 partitions, 5th is Linux root) by writing a new raw disk image file and new partition ...
0
votes
0answers
19 views

Bash profile setting to keep alive “active”, terminal session

Some environments demand the option of more secure ssh and sshd settings that will bump a user off due to inactivity. As an admin, I would like to know how to set a Bash profile setting for my user, ...
-1
votes
1answer
24 views

Permission denied (publickey,gssapi-keyex,gssapi-with-mic) Amazon Linux

I've looked at the other questions on this and none have worked for me. I did the following to add a new user on an EC2 instance running Amazon Linux: sudo usermod -G git_group rich sudo mkdir -p /...
0
votes
1answer
24 views

Is there a way specify the host I am connecting from in scp or rsync when connected via ssh?

Considering I have connected via ssh to a remote host and I want to copy a file from that remote host to my local device: I know that I can just copy that file from a shell on the local device by ...
6
votes
1answer
62 views

SSHFS/SFTP : Vim hangs when trying to edit file over sshfs and can't upload file over MTU size over sftp

My university provides an ssh access to the students university accounts, and I just set up an sshfs to access some folders on my remote account. I am running pop_os on my local machine and using ...
0
votes
0answers
15 views

Update Linux secure log to show escalation to root not as the user but as its RSA Cert ID

I looked all over Google.com but I couldn't find any answers. I am hoping someone could help me here. Background Info: We use a Certificate Authority Server that signs our engineers Public/Private ...
1
vote
0answers
29 views

centos8 ssh Timeout client not responding

We just installed centos8 on one of our servers. The same (barebone) machine ran centos7 just fine before. Now we have many interrupted connections; many ssh connections get interrupted but not all... ...
0
votes
0answers
31 views

SSH authentication Permission denied (publickey,gssapi-keyex,gssapi-with-mic) [closed]

I'm having problem when I try to connect to a remote server using ssh with the following command: ssh -vvv -l user hostname -p XXXX I get the following result: OpenSSH_7.9p1 Debian-10+deb10u1, ...
1
vote
1answer
33 views

ControlMaster conflicts with ForwardAgent

I have set up agent forwarding on my ssh client: Host * ForwardAgent yes User somebody IdentityFile ~/.ssh/id_rsa AddKeysToAgent yes When I log in to the remote system, I see the following ...
0
votes
0answers
7 views

What are some options for Localforward keeps changing?

Super noob here. I'm trying to do port forwarding using LocalForward method in the ssh config file. The issue is that the host address I am using has the potential to change if my aws ec2 instance ...
0
votes
3answers
34 views

Start command remotely and then close connection

I'm trying to start a trim command on a bunch of servers remotely since these are appliances and we lose support if you change anything like cron jobs locally. I'm trying to do this: ssh root@192....
0
votes
2answers
41 views

How to create .pem file - full process

I want to create a .pem file to connect to the server. I know that I can use ssh-keygen, But I want to use it for a specific user, And I need a script that will do for me all process. My need is to ...
0
votes
1answer
24 views

VNC via SSH stopped working

Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password) I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now. Here'...
-1
votes
0answers
23 views

ssh to virtual machine

I set on ubuntu server in vm : address : 192.168.1.100 getway : 192.168.1.1 and I set in network adaptor's config : NAT and port forwarng : HOST IP : 127.0.0.1 GUEST IP : 192.168.1.100 how ssh ...
-1
votes
1answer
17 views

Password prompt when copying file to remote server using scp while password authentification disabled

I have remote server where i set up authentification through ssh keys. Where i try to connect to server by ssh user@hostname server didnt prompt me password but when i am trying to copy file from ...
-1
votes
0answers
20 views

host is denied through ssh getting time out as response [closed]

yesterday I was just copying by rsync from hostX to hostY. Early this morning I saw that copy stopped by time out. Now I'm trying to start over the rsync and I'm getting as error time out. I tried ...
0
votes
1answer
31 views

Still can't login without password after ssh-copy-id command success

I've searched and tried many solutions in the internet on why I can't still do passwordless remote server access but I can't seem to make it work. I have followed this step in creating a ssh key and ...
0
votes
1answer
14 views

Auth.log entries: How do you interpret this log?

There has been some odd behavior on my server. I pulled up the auth.log and found this (this is not my IP): Sep 16 16:38:23 xxxxxx sshd[750]: pam_unix(sshd:auth): authentication failure; logname= uid=...
0
votes
1answer
16 views

With Ansible, is it possible to connect connect to hosts that are behind Cloud IAP (Identity-Aware Proxy) in GCP?

Cloud IAP is a sort of proxy for Google Cloud Platform that lets you connect to compute instances that don't have public IP addresses, without a VPN. You stand up an instance and then you can use the ...
0
votes
1answer
42 views

Trying to connect to remote server via SSH but still prompts for password

I generated a ssh key pair with ssh-keygen, use ssh-copy-id to the server and checked that the public key was added to authorized_keys, but then when i try to connect with ssh -i ~/.ssh/MY_KEY user@...
1
vote
1answer
40 views

Add an SSH key on boot

I have a Git repo that is authenticated with an SSH key - the key is not the standard id_rsa. I can run: eval $(ssh-agent -s) ssh-add /home/forge/.ssh/otherkey Then git pull origin master This ...
0
votes
0answers
21 views

Configure PAM to ask for 2FA token even if password is incorrect

I have Google 2FA set up for ssh password logins. Works fine, but if possible I'd like to tighten a small security hole: if the password given is correct, it will then ask for the 2FA token. If the ...
-1
votes
0answers
22 views

sudo stop working after i close my ssh connection

I have to connect to one server using ssh. let's call it UbuntuA. from that server I could access with ssh to UbuntuB. I made the config to connect to the server directly without password using the ...
-3
votes
1answer
75 views

Why ssh require a password?

I have two computers, on one debian on another ubuntu. I want to connect to the computer with debian(server) and the ubuntu computer(client), using ssh. server : root@R2CPU:/# service ssh start root@...
-2
votes
1answer
69 views

Install openssh-server 8.0p1 on Ubuntu 18.04.3 LTS

Ubuntu 18.04.3 LTS (bionic) have OpenSSH server version 7.6p1 but that release is 2 years old by now. On my local Arch Linux machine I'm running 8.0p1 but Ubuntu naturally have slower pace. The ...
0
votes
0answers
11 views

How to pipe an ssh user into lxc-attach?

I wish to know if it is possible (of course, it is possible, but I don't know how to do it) to have something like the serial console of SolusVM : An user is created on the host machine (e.g. ...
0
votes
1answer
19 views

What do I need to create to an SSH tunnel to a local network service running on my remote host?

I would like to connect a virtualbox computer to a local service on a remote computer. I can connect to local services, but the remote one, I have a problem because on the destination, the service ...
0
votes
2answers
50 views

SSH - Periodically require password even when public key is present

How do I allow public key authentication but still require user's password every 24 hours? Preferred host OS is Debian.
-1
votes
0answers
25 views

Can't Sign In With New User

I followed this guide in order to limit the amount of files a user can access: How to restrict a user to one folder and not allow them to move out his folder However, none of the new accounts that I ...
1
vote
3answers
50 views

pdsh input from file possible?

I can pipe data from one command to another, example: $ echo test | cat test Unsure of what to call the operation I can get a similar effect using: $ cat < <(echo test) test Where <(echo ...
1
vote
1answer
52 views

Execute Python script located on remote Windows machine from Linux server

I have following task: I have Linux (RedHat) server and Windows machine. I need to execute Python script located on Windows side from Linux using ssh. SSH server with password-less access is ...
0
votes
0answers
16 views

How to determine KDE versions on a remote system accessed via SSH?

I need to regularly know some software version numbers of remote machines that I access via SSH. The commands that I would use to get these software version numbers are: plasmashell --version ...
0
votes
1answer
38 views

How does 'ssh <destination> exit' terminate the session?

In a command like ssh <destination> true, ssh executes the command true on the destination then terminates the session. When running ssh <destination> exit, what initiates the termination ...
0
votes
1answer
20 views

SSH only working shortly after router reboot

I am trying to create a homemade server. I'm running Ubuntu 18.04 and have an Xfinity router. I've forwarded port 22 to a reserved local IP for my server. The problem is that I can connect via a ...
1
vote
1answer
31 views

Automatically Run Multiple Command over SSH on multiple devices

I have 100+ devices that has same username and password and enabled SSH. What I would like to achieve is for each device I want to run same command to change their password bulk. What I did is to ...
0
votes
1answer
20 views

Differentiate during PAM authentication SSH session vs SSH inline commands

During authentication of SSH user, is there a way we can tell between SSH session vs SSH inline command? I have tried checking tty but they are coming up the same in both cases for me. In my scenario,...
0
votes
1answer
31 views

ssh connection refused after reboot

I rebooted my Linux Mint 17.3 machine and now when I try to ssh to it, I get "Connection refused" -- what did go wrong? Here are my diagnostic steps: $ ps -ax |grep ssh 2013 ? Ss 0:00 /usr/bin/...
1
vote
1answer
32 views

lolcat + motd = no colours

I can't get lolcat to show colours in the message of the day (motd). When I run this in the command line, all works fine: exec /usr/games/fortune | /usr/games/cowsay -f moose | /usr/games/lolcat ...