Stack Exchange Network

Stack Exchange network consists of 175 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
20 views

Variable for SCP command in script

this is my first post here. So, I'm trying to write a script that will check what is the last modified/created file on the server, then copy it to my homedirectory on this server and then copy this ...
0
votes
1answer
10 views

Remote screen session

This is running me crazy: I want to use 4 screen windows (within the same session) in a remote server (GCloud) to process 4 subjects in a parallel way. Long story short: I first create a detached ...
-1
votes
0answers
12 views

Remote connection not establishing in ubuntu

I am unable to connect to my ubuntu system remotely(using public ip).It's working fine in local network(with local ip) but it shows connection timed out when i try to connect remotely.I am using ...
0
votes
0answers
36 views

Install private git server on Docker container

I have been trying to install a Git server on a debian Docker container on a virtual machine. I followed a few tutorials about doing it on Linux distributions. Everything is fine until I'm trying to ...
0
votes
0answers
13 views

ssh reverse tunnel with dynamic port for backup over ssh in DMZ

I'd like to do backup over ssh on a server in DMZ, the backup would be executed by a backup server which can ssh to DMZ. I was thinking to use reverse ssh port forwarding with dynamic port, ie. ssh -R ...
-1
votes
0answers
10 views

plink from one server to another server sshpass

i am trying to run a command "df -kh" in linux server(192.168.82.11) from plink application via intermediate linux server(192.168.82.10) like below. But plink command not running, it hangs. As i dont ...
1
vote
1answer
46 views

ssh & sftp work with netns, but sshfs doesn’t

Here, I use netns to use a VPN, but sshfs doesn’t work properly. Here's what I tried: root@ubuntu:/mnt# ip netns exec secured sshfs -d -o sshfs_debug -p PORT USER@HOST: MOUNTPOINT SSHFS version 2.8 ...
0
votes
1answer
22 views

Ubuntu SSH Auth Log Shows Proxy IP

I am trying to figure out an issue I have been having. I am using a webpanel called TinyCP and there is a table for displaying failed login attemps via SSH. All SSH attempts, failed or successful, ...
0
votes
0answers
28 views

Why is my PATH so small when opening SSH session through python subprocess?

I'm currently working on a project that requires me to use a python subprocess to execute "i2cset" on a Raspberry Pi2 through SSH but my code keeps telling me that my Raspberry Pi can't find "i2cset". ...
0
votes
0answers
27 views

Low internet upload speed in SSH [on hold]

I am facing problem with file upload speed(upload bandwidth). Although my internet upload bandwidth is 1 MegaByte/s but I am getting 60-80 KiloByte/s for uploading any files with ssh (sftp and scp) to ...
0
votes
0answers
10 views

Can keychain be used to encrypt a file?

I would like to have something like KEY="$(echo "key please" | $SSH_AUTH_SOCK)" cryptsetup luksOpen --key-file <(echo "$KEY") /path/to/file like PGP. The IdentityAgent SSH_AUTH_SOCK seems to have ...
0
votes
0answers
41 views

Monitor SSH attempts in Windows Subsystem Linux

I am trying to look at failed SSH attempts, which I could do on a regular ubuntu machine by looking at /var/log/auth.log. I've taken a look at Debian - auth.log missing from /var/log and the WSL has ...
0
votes
2answers
44 views

Substitute of whoami and who [on hold]

i'm using a pinky -l in my shell and i used whoami to output the current user id but my problem is there is a name 'whoami' my question is What other commands to output a userid other than who, ...
-2
votes
1answer
37 views

How to connect remote Linux Machine via SSH [on hold]

I want to connect remote my linux machine via SSH. What should I do for this?
0
votes
1answer
36 views

command/script to copy /etc/hosts to another debian machine [on hold]

The two machines have password-less ssh setup. The problem is overwriting the file need root privileges, and ssh as root is not allowed. So how can I push the file to another machine to overwrite? ...
1
vote
1answer
30 views

How to use TOKENS with ssh LocalForward directive?

With the following ssh_config: Match all IdentityFile /opt/ssh/id_rsa StrictHostKeyChecking no ServerAliveInterval 30 ServerAliveCountMax 3 ControlMaster auto ControlPersist 300 ...
1
vote
0answers
41 views

CRON (no tty): Delete message with specific “Message-Id”

I have a situation where I need to delete from mailbox (eg. /var/mail/root) messages with specific Message-Id. Following code works only from console, but I have to do it without user interaction ...
0
votes
1answer
20 views

How to keep a vpn ssh socket connection alive?

I'm running the following script to create a connection to a vpn. sshpass -p <pass> ssh -Nf -C -D <port> <user>@<ip> Problem: sometimes the socket shuts down silently (maybe ...
0
votes
1answer
34 views

How to script SSH connection using keypair and password?

I managed to login to my hosting provider manually with this command: ssh -i /path/to/key-ssh me@mydomain.com The server then asks for a password, and login succeeds. Now I want to automate a ...
0
votes
2answers
40 views

Run ssh command without quotes

You can execute a command on a remote server using ssh user@host 'the command' but is there a way to execute the command without quotes? (I am on BSD and using OpenSSH)
0
votes
1answer
24 views

run command over ssh on originating machine

I have a local machine nostromo running an interactive cinnamon desktop on debian testing. On it, I have gnome-terminal running with an ssh terminal open to a remote machine sulaco. I would like to ...
0
votes
0answers
19 views

Error trying to access other system's camera by ssh within a python script [migrated]

I am trying to access a live video from other system . for that i have copied a python opencv file in the remote system and i tried to access the video using ssh from my python script . >>> ...
0
votes
1answer
25 views

error while starting open ssh : /usr/sbin/sshd: /lib/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /usr/sbin/sshd)

I am working on an embedded board, to access that board I need ssh to work smoothly. Currently, for debugging purpose I am using serial connection to access the board. Now, when I try to start ...
0
votes
0answers
36 views

Create Passwordless SSH login without exectuting SSH-KEYGEN on Client?

The normal installation/configuration of SSH on a client requires the use of ssh-keygen to create a local private/public key pair in the .ssh folder of the user's profile. To configure the normal, ...
2
votes
0answers
24 views

Can pssh execute command on the control machine?

Can pssh parallelly execute commands on a control machine? Now I have three machines. This is my hostpssh file. They are corresponding to druidcluster1, druidcluster2, druidcluster4. root@9.116....
0
votes
1answer
58 views

Gnome: Possible to get each instance of an application associated with the icon which was used to start it?

I'm using Gnome 3.30 and beyond org.gnome.Terminal.desktop, I have two additional .desktop files with Exec=gnome-terminal --window-with-profile=XXX, where profile XXX uses custom command ssh kalle@XXX,...
-2
votes
0answers
25 views

use SSHPASS to connect to multiple servers with different credentials

I want to create a FOR loop and use SSHPASS. SSHPASS will try to connect to a server using Credential A, if that doesn't works it should use Credential B and so on. Once it gets connected successfully,...
2
votes
1answer
22 views

how do I tab in telnet when executing it on remote host by ssh?

How can I use tab when I use telnet on a remote host by ssh, I have something like: ssh -o StritHopstKeyChecking=no -p port user@hostA telnet hostB; echo "Reconnect?"; while read < /dev/tty; do ...
1
vote
2answers
28 views

Non-Root User SSH Privileged Command with File Piping

I have an a SSH server where root login is disabled. I'm hoping to run a privileged command that will want input from a file I have after being executed. I'm hoping to do all without user interaction ...
1
vote
0answers
32 views

Chroot Jail User | Allow access via ssh shell

How to allow chroot Jail users(sftp) to access terminal through SSH. The user will placed file via WinSCP (chroot Jail).then on same server login to putty(ssh) there is a script that will launch ...
0
votes
1answer
23 views

SSH Tunneling, have some problems [closed]

I have a computer and host A, B. Host A has internet connection and host B placed in host's A local network. Host B has Web Interface at port 8080. I need to forward port on host A. And then i want to ...
0
votes
1answer
47 views

how to make my sed command work in GNU works in BSD

I have a block content in my ~/.ssh/config. begin with a line '# BEGIN AUTO GENERATED CONTENT' and end with a line '# END AUTO GENERATED CONTENT' I have a command replacing content between this two ...
16
votes
3answers
2k views

How can it be that ssh somename works, while nslookup somename does not?

How to know the IP address of some host somename I can ssh to? If I do nslookup on this host it says "no answer". How can ssh resolve it's name then? Neither /etc/hosts nor .ssh/config explanation ...
0
votes
0answers
29 views

How to make hosts accessible from my server?

I have 4 Vagrant nodes. I want to make 3 of them SSH-accessible from the controller machine. I tried this sudo ssh-copy-id vagrant@192.168.77.10 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be ...
1
vote
1answer
72 views

Script for sending commands via ssh and not wait till and leave the terminal

I have sevaral computers, combined into network with Ethernet switch. All are running Fedora server and have connection to Internet. What I need is a script, which: Connects to all nodes from list ...
0
votes
2answers
38 views

Server is not asking for keys to authenticate

I am trying to configure an ssh server, so that it accepts only keys (so disabling the request of the password). I have already generated the public and private key using PuTTY (under Windows). I ...
0
votes
0answers
14 views

Leafpad + SSH: data lost

I have a client and server of SSH in a network, and both are running Debian 9 + LXDE. Then I did the following: Connect the client with the server via file manager: PCManFM > Go > Connect to ...
1
vote
1answer
34 views

VirtualBox network NAT connect via SSH client

I have also used NAT and forwarding and it's working fine (but in my case I want cluster or Jenkins master and Jenkins slave that's why I have created network NAT). I have created NAT network named ...
0
votes
0answers
29 views

SSH bruteforce attempts from my pc

I noticed, that every 15 minutes there is ssh attempts to remote server. How can I detect what proccess trying connect to remote host via ssh?
1
vote
2answers
30 views

ssh on remote host but switch user on local host running as root

I have a script running as a root. It ssh to remote host and run a script as user gol. I have added ssh keys for the user(gol) to remote host. But since the script is run as a root it still prompts ...
0
votes
1answer
17 views

ssh config to “prepend” torsocks

I can reach my phone using: torsocks ssh myphone if I have this in my .ssh/config: Host myphone User u0_a162 Port 2222 HostName umqkh75wp2chf5av5esqhtyzedmw4it76dvs7ild2rikbcek6eyqfsqd.onion ...
0
votes
0answers
35 views

stdin to veracrypt in server bash script when accessed via ssh with and without x11 forwarding

On my server with the ip 192.168.142.200 I have a simple bash script (for testing purposes) /etc/custom/scriptOnServer: #!/bin/bash echo -e "$1\n$1" | veracrypt -t -k "" --pim=1 --protect-hidden=no /...
0
votes
0answers
26 views

Easier way to run remote and monitor remote commands

I'm currently leveraging Ruby in a docker image to run some commands on my local Linux system via SSH and Tmux. However, this isn't feasible since I can't figure out a way to actually monitor the ...
-1
votes
0answers
25 views

Seamless SFTP tunneling / jump box - with chroot

Continuing a question from here: seamless-sftp-tunneling-jump-box where I asked how to tunnel an SFTP connection from a single jumpbox to machines in internal network. I have successfully managed to ...
0
votes
1answer
27 views

Is file specified in .ssh/config/IdentityFile private or public key?

If I specify in my ssh config Host myhost User myname IdentityFile mykey then what is IdentitfyFile: private or public key?
2
votes
4answers
57 views

Can not access ssh fowarding port

I have two servers, Server A has a public IP address(43.24.24.29), Server B has a private IP address(10.10.10.1). and Server A can connected to Server B by its public IP address(maybe there has some ...
1
vote
1answer
44 views

Suggestions for SSH Client in Linux Mint

I am using Linux Mint 18.3 on a Dell Laptop. I like the connect to server feature in my file browser windows which allows me to easily access remote directories via SSH. However, as I repeatedly ...
1
vote
2answers
41 views

SSH: Permission denied as given IdentityFile is not used

I'm using this .ssh/config: Host myserver HostName 12.34.67.89 User anyuser IdentityFile /root/.ssh/anything_rsa But running ssh myserver returns a Permission denied (publickey) error. ...
0
votes
1answer
33 views

Can't get SSH daemon running on macOS

The server is running macOS Mojave 10.14.4. I'm unable to get the SSH daemon to start. After logging in locally, I run: $ launchctl list | grep ssh - 0 com.openssh.ssh-agent $ ps -A | grep ssh ...
2
votes
2answers
87 views

Why I can use only private key to login a server using ssh?

I generated the keypair in Computer 1. And move the public key to the Computer2(server) and make it in authorized_keys. And move the private key to Computer3(client) and use ssh-add to add it. ...