Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
48 views

Jenkins pipeline: scp tries to copy to other remote, Host key verification failed [duplicate]

I use Jenkins in ubuntu server. In this case, I want to copy a file to another remote server. I use SCP command inside sshagent the Jenkins pipeline. I tried the solution from unable to scp in ...
0
votes
1answer
26 views

alternatives to SSH_AUTH_SOCK for the command line

Are there alternatives to the SSH_AUTH_SOCK environment variable for passing agent info to ssh? What I'm looking for is something like -o SshAuthSockPath="/path/to/socket" but nothing like that ...
0
votes
1answer
21 views

ssh-keyscan -H returns different keys every time

I'm getting different keys every time I run ssh-keyscan -H some.hostname.example. Why is that? Is the server continuously changing keys? They keys I'm getting from one run seems to work even after a ...
-1
votes
0answers
32 views

SSH into a server that is running ExpressVPN? [on hold]

I have a server running the ExpressVPN VPN service. But this results in me not being able to SSH into the server at all while the VPN service is running. How can I fix this?
0
votes
0answers
14 views

Tunneling VNC for guacamole

I want to set up multiple Raspberry Pis to be accessible via VNC. For this I think guacamole is a good option as it doesn't require to install a client which is really what I want. The thing is that ...
-1
votes
0answers
19 views

Limit ssh unix socket forwarding

From reading the docs, it seems clear that PermitOpen and PermitListen only apply to ports from:https://man.openbsd.org/sshd.8 permitlisten="[host:]port" Limit remote port forwarding with the ...
1
vote
2answers
45 views

User bypasses DenyUsers on Debian 8

So I have a user called spring and although my sshd_config says DenyUsers spring, I can login with PuTTY into that user. I restarted the SSH service of course. The non-comment lines from /etc/ssh/...
0
votes
1answer
47 views

SSH over incoming call from faxmodem possible?

I have a flaky broadband internet connection, and, seperated from that, a classic analog landline. Furthermore, I have a raspberry pi and a usb 56k-faxmodem. When I am not at home and can't reach my ...
0
votes
0answers
16 views

User Resource management: cgroups + systemd + ssh

I am trying to limit the memory of a single user that keeps crashing our OpenSuse Server. What I have done is as desribed here, to modify the limit of the user's slice via systemctl set-property ...
0
votes
0answers
34 views

SSH broken pipe and then connection refused [duplicate]

I am running Ubuntu 18.04. Today i started the server i was working on and after logging in with ssh it kicked me out of server and after that when i tried to log back into the server I get ...
0
votes
0answers
8 views

Does Sshuttle proxy Transmission? [on hold]

Firstly we got sshuttle running in my ubuntu terminal, sshuttle -r root@104.140.00.200 0/0 --dns --python=/usr/bin/python3 -x 104.140.00.200 then download a video file with Transmission, the ...
0
votes
1answer
33 views

Specifying an IdentityFile with SSH

I am trying to make a more streamlined means to establish an SSH client connection to a remote server. I have created a public/private keypair and used ssh-copy-id to install the public key onto the ...
0
votes
0answers
63 views

sshfs always asking for password when mounting? [on hold]

I'm trying to mount my ubuntu directory in my workstation (in the same network). sudo sshfs -o gid=1000,uid=1000 frank@192.168.130.105:/home/frank /home/a305workstation/test_m Then I'm asked to ...
1
vote
1answer
24 views

No nohup logs on remote server

I'm trying to start a proccess on remote server with ssh. I need to log stdout on target server (not the local one) Here is the script: sshpass -p mypwd ssh root@myserver.com nohup java -jar /tmp/...
-2
votes
0answers
18 views

How can i change phpmyadmin password. I tried it. But not work.?

First i login to my server using putty. and this is my server data uname -or 2.6.32-754.6.3.el6.x86_64 GNU/Linux . uname -a Linux vps-xxx-xxx.example.com 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 ...
0
votes
0answers
28 views

How can i change mysql password. I tried it. But not work.?

First i login to my server using putty. and this is my server data uname -or 2.6.32-754.6.3.el6.x86_64 GNU/Linux uname -a Linux vps-xxx-xxx.example.com 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 ...
2
votes
2answers
26 views

SSH session closed during apt upgrade, and is prompting for input. What are my options to continue?

I'm viewing /var/log/apt/term.log because the ssh session closed while it was running and my apt-get upgrade is prompting for input, but because I'm viewing the log I can't give input. What are my ...
1
vote
0answers
47 views

sshd_config - StrictModes option - bad to disable?

My use case is to have a shared account for webmasters (named as domain) but only one of the webmasters is "owner" of main data and defines who can loging to the shared account via editing ...
0
votes
0answers
57 views

making a SSH to Deny connections from all IP's except selected [duplicate]

So i made a SSH server and i want it to deny all incoming connections from all ip's except a few. local ip's and my phone 3G public ip...the problem is after a set of iptable rules i only can connect ...
0
votes
1answer
69 views

Weird behavior of SSH, not using proper key comment

I am using Ubuntu 18.04 LTS. Whenever, I ssh-copy-id for the first time it puts my username@host at the end of the authorized_keys file line as expected. On Remote machine: sacredos@sacredos-DT:~$ ...
0
votes
1answer
31 views

How to do ssh tunnelling into a private network?

My local machine (A) can access a login server (B) via SSH. The login server (B) can access a computing server (C) via SSH. That is, (B) has a public IP. (C) has only a private IP within the private ...
0
votes
1answer
22 views

Troubleshooting ssh connection taking too long to be established with no errors

I'm encountering some trouble to connect via ssh to a specific host (running on ubuntu server 14.04), The process takes up to 9s to happen. When running ssh with debug option (-v), I get the following ...
1
vote
0answers
35 views

Trouble setting up an sftp chroot jail

I'm following the SFTP chroot wiki on ArchWiki and finding a huge snag: I can't get my sftponly users authorized. Output of tail -2 /etc/passwd (my 2 users): chris:x:1001:1002::/home/jail:/usr/bin/...
1
vote
1answer
32 views

Stopping and Starting Multiple services on multiple servers in Linux on same network and doing it by sitting on a single server? [closed]

Take for example i have 4 servers A,B,C,D. All are on same network and all have same services running like Apache, Tomcat etc and when patching is required to be done on these servers i need to stop, ...
1
vote
1answer
25 views

SSH screen dies every now and then

I am trying to run node.js app. Every now and then I find that my app is not running & I have no idea why. I have used nodemon, forever, nohup. When I set screen, find few days later that my app ...
2
votes
2answers
59 views

“Command not found” when using ssh and non absolute commands

I want to use a command over ssh: ssh myuser@myhost mycommand but doing so I always get: sh: mycommand: command not found using following obviously works: ssh myuser@myhost /usr/local/bin/...
0
votes
1answer
20 views

Difference between openstack keypair create and ssh-keygen

I want to understand how exactly does the openstack keypair create command differs from ssh-keygen(both create a keypair ,right?). Also, what exactly happens when I provide a public key to the ...
0
votes
0answers
38 views

scp: Failed to open file /my/Path/test.txt on Windows Server

I have been trying to copy a file from a remote Windows Server to my local docker image from my local docker image and I keep getting the error 'scp:Failed to open File /my/Path/test.txt'.My ...
0
votes
0answers
40 views

ssh X11Forwarding Gtk-WARNING **: 22:56:39.694: cannot open display: 10.255.255.202:0

I have an Ubuntu server on the local net I can ssh to an run say gedit. It works just fine. And a remote Red Hat 7 through a VPN connection which fails. I connect with the command: ssh -X -o ...
0
votes
0answers
20 views

Use ControlMaster socket on bastion

I have a host that once full configured has no ingress. On a bastion, I setup a SSH tunnel with ControlMaster prior to the host removing ingress access. Can I SSH directly to the no-ingress Host ...
1
vote
1answer
32 views

ssh port forward when connected with ssh in script

when I am connected to a device over SSH, I know how to forward local ports; first enter ssh menu with [ENTER} ~C, then: -L 4455:ip:80 This will make localhost:4455 on my local machine go to port ...
0
votes
0answers
44 views

SSH private keys fails when trying to login

I have a problem with ssh that keeps asking me for periphrase and password. I first generated a public/private key-pair using ssh-keygen -t rsa -C my-login@my-server.com it ask me for a file to ...
1
vote
1answer
29 views

Connecting to SSH authentication agent when running commands with sudo

I use etckeeper to keep my various OS configurations under version control. Until now, I was content to just use a local Git repository to keep track of changes but it occurred to me that I wasn’t ...
1
vote
1answer
31 views

ssh-copy-id ask for password

I created user and generated key with this commands root# mkdir /usr/share/foreman/.ssh root# chmod 700 /usr/share/foreman/.ssh root# chown user:user/usr/share/foreman/.ssh root# su user -s /bin/...
0
votes
0answers
58 views

SSH config file - Run command before connection

i cannot run a command before connect with ssh to remote server using ~/.ssh/config file. I have tried with options "ProxyCommand" and "LocalCommand" but it doesn't work. ProxyCommand: seems it run ...
2
votes
0answers
53 views

How to pass options to ssh proxy command?

To collect some data from a bunch of hosts I use a bash script which calls scp in a loop. Most of these hosts are configured for ssh public key authentication. I may skip those which have no key ...
0
votes
0answers
35 views

byobu prevents SSH login

I'm running arch linux for arm on an old goflex for network storage and wanted to use byobu on it. There's no package for the distribution so I compiled it from source, and it works just fine. The ...
0
votes
1answer
34 views

SCP not willing to transfer remote to remote

My family and I are attempting to sync all our data across multiple locations and devices. Seeing as we are just setting it up, we were wanting to start with the basics before building on it further, ...
0
votes
0answers
32 views

Use 'ssh ps aux' to gurantee process alive, mistake sometime

Q1 : Recently, some operations scripts is deployed on machine-01, in order to monitor process alive in remote machines. This feature is done by periodly do following cmd: ssh $ip "ps aux | grep $...
0
votes
0answers
21 views

fwmark routing not taken

I'm trying to set up kind of "on my demand dynamic routing". Basically, when I activate a script , I would like it mounts a new interface (tun vpn for example) and define the appropriate firewall and ...
1
vote
1answer
30 views

Utilize established ssh tunnel from another shell?

I have an established ssh tunnel (port 9876) that is running in the background and was established with this command: /usr/bin/autossh -M 0 -o ServerAliveInterval 30 -o ServerAliveCountMax 3 -D 9876 ...
0
votes
0answers
37 views

Installing “iptables” in the remote machine

I have written a C++ program where I would capture the packets on the interfaces. Based on the packet values, I need to install iptables rules on the remote machine. For installing iptables on remote ...
0
votes
0answers
43 views

SSH Error on AWS EC2

After connecting succesfully to AWS on the latest iMac through Bash Script 1: chmod 400 ~/PEM.pem ssh -i "~/PEM.pem" ec2-user@address.com jupyter notebook --no-browser --port=8888 Then opening a ...
1
vote
2answers
66 views

run a shell script which reference another script on ssh

I have two bash scripts main.sh and a util.sh, and I reference utils.sh in the main.sh by using . util.sh. Now I want to run main.sh via ssh. Obviously, this won't work: ssh user@host "bash /dev/...
0
votes
0answers
22 views

Gentoo Barebones X installation for window forwarding

I have a gentoo installation which does not have X installed. This gentoo is a ssh entry point from the internet and allows me to ssh into other machines on the LAN. I want X window forwarding from ...
0
votes
1answer
46 views

Linux mint files color changed in terminal

I am using Linux Minter 19.0 on two machines. I have a src and destination folder. My src folder is on my local machine, and the dest folder is on a remote machine. I ran rsync to move files from ...
0
votes
1answer
43 views

use chroot to lock down sftp access without root owning folder

Everything I am reading says that for chroot to work with sftp root has to own the folder. I want to make it so a user can only sftp to a sub-directory in their home folder like /home/user/some/folder....
-1
votes
0answers
32 views

Inactive session timeout for GUI and Terminal [duplicate]

How inactivity timeout for GUI session is set for 15 min ?. Once a user's session is locked or terminated, the product must force the user to re-authenticate before continuing his or her session. ...
0
votes
1answer
54 views

How to set password constraints in Gnu/Linux [closed]

It contains at least one lowercase letter. It contains at least one digit, which can be in any position except the first and last position. It contains at least one special character (non-...
0
votes
1answer
27 views

SSH Tunneling HTTPS traffic through 2 Servers

What I'm trying to determine is how do you tunnel HTTPS traffic through more than 1 host? Normally what I do when I have to jump through 1 host is the following: # URL Access Tunnel: https://127.0.0....