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
1
vote
1answer
20 views

Allowing guest SSH and Telnet access

Currently, whenever people Telnet to my server (or SSH), they are prompted for a username/password. I do my own authentication afterwards on that specific user, so this is redundant. The user ...
3
votes
1answer
31 views

Bash program terminates after a few seconds

I have written a small script to download files from an FTP to external drive that is connected to my Raspberry Pi 3B+. I am using rsync to download my files. Here are the scripts: download.sh: #!/...
2
votes
0answers
27 views

ssh is not working but telnet to the port 22 is successful

I Tried to ssh one of our newly installed servers in our DC. Our NOC team is able to ssh the server from their machines but we usually connect our DC servers using our landing machines from which i ...
0
votes
1answer
17 views

The local computer connecting to ssh host is returning an error?

I'm trying to figure out how to overcome this error: I read some similar posts but nothing I could find was straightforward, I was hoping to get some advice on what I can do macminngh:MDATA ...
0
votes
0answers
33 views

What is the difference between `ssh -g -D 8888 server` and `ssh -D 0.0.0.0:8888 server`?

I want to start a SOCKS5 proxy on my machine which can be accessed by anybody in my network. I found two solutions, and I am wondering what the difference is between them: ssh -D 0.0.0.0:8888 -N ...
-2
votes
0answers
25 views

Still getting password prompt when SSH'ing while using DSA keys (on Synology NAS)

I don't understand why the password-less auth does not work. I've checked permissions, even disabled StrictModes, and restarted. Nothing works!? Could you help, please? Here's the SSHD config: ...
2
votes
1answer
68 views

Aborting 'wrong username' logins

Occasionally when I SSH or Telnet into a remote server (using Putty) I fat-finger my username and don't realize it until after I hit ENTER. The subsequent 'password' prompt of course never works ...
0
votes
1answer
22 views

How to launch the password in pssh command

when we want to use pssh in order to get in parallel the command output from remote machine we can do ( for example ) pssh -H presto01 -l root -A -i "hostname" Warning: do not enter your password if ...
0
votes
0answers
32 views

How pssh do the ssh activities without password

the follwing pssh command do a parallel as date pssh -i -H "master01 master02 master03 worker01 worker02" -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o ...
1
vote
1answer
19 views

openssh-client - what is correct location for global known_hosts file?

I'm a bit confused what the "correct" path for ssh's systemwide known_hosts file is.. the man ssh says /etc/ssh/ssh_known_hosts whereas https://www.ssh.com/ssh/host-key talks about /etc/ssh/...
0
votes
1answer
32 views

how to execute a bash script when someone connects to the ssh server (freebsd)

There is a freeBSD server that has a script on bash. The script analyzes the log file of ipfw (for unauthorized access to ssh) and in case of damage sends the message to the mail. Everything works if ...
0
votes
0answers
20 views

python: subprocess.Popen([“ssh”, fails to connect

Here are the code snippets I'm testing in python3: ssh = subprocess.Popen(["ssh", "%s" % HOST, COMMAND], shell=False, stdout=subprocess.PIPE, ...
2
votes
1answer
16 views

Upgrade Debian Wheezy through SSH crashes

I'm using a cheap VM that's getting pretty old. So old that recently, apt-get update && apt-get upgrade returned errors, because wheezy packages were removed from the mirrors. So I decided to ...
1
vote
2answers
15 views

KDE Dolphin change user when in ssh folder?

I am trying to use KDE Dolphin to access a server over SSH. My .ssh/config contains this: Host myhost HostName my-linux-server-name.somewhere.nl User myuser IdentityFile ~/.ssh/...
0
votes
2answers
35 views

Debian 10 — adjust sleep settings via command line

I have a machine that I access only via SSH that I just updated to Debian 10 a couple of days ago. Since the update it seems to be going to sleep when it is inactive. This has never happened with ...
-1
votes
1answer
47 views

SSH to ubuntu server doesn't give me a login shell [on hold]

After manually build bash 5.3, and set environment variable PATH to /tools/bash, when I ssh to server, it uses my build bash and gives me a non-login shell. I'm confused what was happen in this ...
-1
votes
1answer
40 views

passwordless authentication with SSH key pair

Apologies if this question isn't sophisticated enough, I am sort of new to Gnu/Linux. I've 4 VMs in Azure all running CentOS, 1 master and 3 workers. I've set up a passwordless authentication between ...
0
votes
2answers
31 views

Blocking direct access to files (scp or ftp-like behaviour) on ssh server for some users

Is there any way to allow users to only login on terminal shells through ssh ensuring that every connection is gonna run only what's scripted on .profile file? We wanna block users of accessing the ...
1
vote
1answer
29 views

Security implications of SSH Port Forwarding/Tunneling

I need help understanding the security implications of having an outgoing ssh tunnel in my system (what is the risk and could it be a security hole?). I am using the following command to forward port ...
0
votes
0answers
19 views

Normal SSH Setup operations fail for remote root user when origin is a MAC

So this is about Centos7, SSH remote login setup, and the fact that Macs don't have a root user. I've asked this question a couple times and been provided explanations about how ssh works. Some of ...
1
vote
0answers
43 views

SSH Proxy Session Hung Indefinitely

I have an SSH connection flow of client -> proxy server -> server which is established via Net::SSH::Proxy in ruby (this looks to be an SSH problem, not a ruby problem). Once the connection is ...
0
votes
0answers
22 views

ssh : Bad key types problem

I run dnf update on my Fedora 27 yesterday, then after I reboot my laptop I found the ssh didn't work, no matter what host I ssh, the error msg was the same (Bad key types), for example: $ ssh 127.0....
0
votes
0answers
10 views

Create VPN for a subnet using sshuttle?

So, I have a network of 6 machines that are in the same subnet and an external device called MyMachine: MyMachine ----> Subnet of 6 machines (A-F) Now, I want to create a VPN with MyMachine and ...
1
vote
0answers
22 views

ssh jumphost execute always a script

i have a ssh jumphost. On the sshjumphost i wanna execute always a python script if user want use my jumphost to jump. client1 -------- jumphost ---------targethost Client use following command:...
0
votes
1answer
25 views

Block user without pem with SSH

I have Amazon Linux server and just realize that I can access my server without pem. In my server's /etc/ssh/sshd, "PasswordAuthentication no" and "ChallengeResponseAuthentication no". But when I ...
7
votes
2answers
339 views

Can I ignore errors in my ssh config?

I'm running an ubuntu image in a docker container, with my .ssh directory mounted from my native MacOs environment. My .ssh/config file contains Host * AddKeysToAgent yes UseKeychain yes ...
0
votes
0answers
26 views

SSH: How to disable strict host key checking, but still be warned about new devices

I'm working for a company that involves sshing into several different devices with the same IP address and hostname, but unique private keys for ssh. What I'm trying to figure out is a way to disable ...
0
votes
1answer
29 views

ssh agent forwarding troubleshooting

I am struggling to diagnose why one particular server does not honour the agent forwarding I have setup. From client (macOS) I can ssh -A to any number of servers and on them can see that ...
1
vote
1answer
38 views

What is the purpose of the 'ssh_keys' group?

I was asked to add a user to the ssh_keys group, but could not find what the purpose of this group is, so I had to refuse it, but need to learn better. This is about RHEL 7
1
vote
1answer
47 views

How do I ssh to a file socket

I've created an SSH tunnel to a remote machine, with the local entry being a file socket, using -L /tmp/my.socket:127.0.0.1:22 Now how do I use ssh to connect to that file socket instead of a ...
0
votes
0answers
27 views

SSH host key changes after server gets patched

I noticed in place that I worked that when a linux machine (a VM actually and a service guard cluster) is patched, its SSH host key changed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
1
vote
0answers
44 views

How to restrict user's view of the filesystem? [closed]

I have to create users on a machine and allow them to ssh into it. I realized that different users will need different dependencies or packages to be installed, thus allowing them to become sudoers ...
0
votes
0answers
47 views

SSH connection hangs on `debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0`

I have this strange behavior occurring with SSH on one particular machine. If I SSH into it, it'll work for a few seconds and then just 'hang'. I can create a new SSH in verbose ssh -v and it'll just ...
1
vote
1answer
33 views

I installed an Apache Web Server w/ firewall on my server & now I can't ssh to the server, I get: debug1: key_load_public: No such file or directory

I got some server space and installed an apache web server w/ firewall using this tutorial but now when I try to ssh to the server I get this error OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 ...
-1
votes
0answers
60 views

Automatically Transferring files From Windows Server to Linux Client

I'm currently working on a project which requires the transfer of files from a Windows machine to a Linux client directly. The file transfer needs to be automatic in that any file that's created on ...
3
votes
4answers
256 views

gzip compress a local folder and extract it to remote server

I am new to these commands. I am trying to gzip a local folder and unzip the same on the remote server. The thing is, gzipping and unzip must happen on the fly. I tried many and one of the closest I ...
1
vote
0answers
47 views

SSH using private key authentication, is asking for password

I use AndFTP on my Android phone. I added a private SSH key, to AndFTP. When I enable passwordless authentication in the Linux machine, AndFTP shows an authentication error message. But using ...
-2
votes
0answers
31 views

An example of using the forced command ssh key certificate [closed]

How to move a file through the environment variable to a remote host and pick up this file in the script indicated by a forced certificate command. It is required using a certificate to the user's ...
0
votes
0answers
29 views

Using SSH config for ProxyJump and Localforward through Bastion Server

I'm attempting to access an AWS RDS instance within the VPC through a bastion host. I can run the following command successfully which opens up a proxy. I then point my local database management ...
0
votes
0answers
24 views

Cannot setup ssh server

I'm trying to setup my ssh server at home, but cannot make it work yet. I already forwarded the IP inside the router website. I have an external IP. I can access to my router's config using it. I ...
0
votes
0answers
16 views

Strange ban when attempting to make request on a server

I am currently getting banned, every time I try to make a REST request onto an Elasticsearch server hosted inside a LXC container. The host of LXC containers is a Debian Stretch. The Ban is not only ...
3
votes
1answer
120 views

Can not ssh to server without a password

I have two VM machines, and I want them to run a remote command on each other via ssh. I ran these commands on the first machine: ssh-keygen -t rsa ssh-copy-id 192.168.254.148 Then I ran this ...
2
votes
1answer
32 views

SSH keys can't be deleted from agent

My Ubuntu 18.04 keeps adding all my SSH keys into the ssh agent upon startup and I am unable to delete them. Having so many keys in the agent breaks authentication to servers that only permit 3 or 5 ...
3
votes
1answer
34 views

Why does SSH_AUTH_SOCK and SSH_AGENT_PID unsets after a while in Amazon Linux?

We have a build system that needs an active ssh connection with mercurial and to do so, it needs an ssh-agent loaded with a key constantly.. The thing is that, even though that after creating the ssh ...
1
vote
1answer
21 views

Run ssh daemon in different namespace to connected clients

If sshd is running in the (non-init) namespace of the appropriate physical device: ip netns exec physical sshd is it possible to have clients that connect on that interface get a shell with the ...
-3
votes
1answer
44 views

Force ssh to use only password issue [duplicate]

I have a problem with ssh connection to my remote server. I've just reinstalled remote server recently. user:~/workspace/cheops-master/frontend $ ssh -o PreferredAuthentications=password root@##.###.#...
1
vote
0answers
40 views

git ssh to ipv6 address on non-standard port

I am trying to access a git respository at a IPv6 address that has a SSH server listening on port 1111(for example). Access is controlled by SSH key and I can open a SSH session on the gitserver ...
0
votes
0answers
10 views

Proxy git user's SSH login to internal GitLab CE container

I have a metal box with Ubuntu and I have set up GitLab CE inside a Docker container (whose IP address is only accessible within the docker0 network), so there's only one public IP for the whole ...
1
vote
1answer
26 views

How scp between two Oracle Linux machines with localhost.localdomain hostnames

How to scp between two Oracle Linux 7.6 machines on virtualbox that have the hostnames localhost.localdomain scp -r test.txt oracle@localhost:/home/oracle/Desktop/ isn't working. When I changed the ...
0
votes
1answer
26 views

Hash hostnames in $HOME/.ssh/config?

I know it's a good security measure to set HashKnownHosts yes in /etc/ssh/ssh_config, which causes OpenSSH client to hash the hostnames in ~/.ssh/known_hosts. Now I want to hash the hostnames in ~/....