SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

2
votes
5answers
181 views

Does ssh send the password over the network?

Basically the entire question is in the headline: Does ssh send the password over the network? Presuming of course that login via username and password is used. I'm asking because if ssh doesn't send ...
0
votes
0answers
8 views

Import/Export running GUI applications between localhost and SSH client running x11 forwarding?

I am running a Centos Linux server which I connect to using Putty/SSH with x11 forwarding enabled and an X11 server (Xming) running on the client machine... I am able to open GUI applications from my ...
0
votes
1answer
39 views

add multiple users to multiple servers [duplicate]

I have a quick bash scripting question. I'm trying to add multiple new user accounts to multiple RedHat servers in my environment. This the script I've come up with so far, but it's not quite ...
0
votes
1answer
19 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
1answer
53 views

How to run a program from a server on a file stored on a local machine

I have a C file stored on my machine that I wish to execute using a program on an external server. The reason that for doing this is space requirements - I don't have storage space on the external ...
0
votes
1answer
33 views

Capture stdout from ssh session to local machine

I am having to put together a script that will ssh into devices to run a command such as "show running-config" and save the output to a file on my local machine. I have done similar tasks like this ...
0
votes
1answer
16 views

What does pasv_enable and related field s mean in vsftpd.conf

I just installed vsftpd according to these directions. I am trying to get ftp working on my Ubuntu box that is using Amazon AWS. When I first tried this directions, it did not work. I was trying to ...
4
votes
3answers
54 views

Is there a way to send custom arguments to an rsync server?

I have a backup server that clients use with rsync over SSH. The server is configured to run a custom shell script that wraps the invocation of the rsync server side. The client side is unaware of ...
1
vote
2answers
40 views

SCP files without user interaction

I am planning to copy some files to entire network of linux machines, but when I tried to use scp it asked for confirmation and I need to type "yes" and after that I have to enter the password. Is ...
0
votes
2answers
38 views

Reasons for a server to be unreachable, How to investigate?

One of my server which host a mongoDB is, sometimes and "randomly" unreachable. After a while, it come back, like nothing happend. During this period, impossible to open an ssh tunnel (timeout, don'...
0
votes
0answers
29 views

Outgoing network connections fail, incoming ssh login delayed [on hold]

I'm having the following trouble with outgoing connections in CentOS: yum cannot connect (just hangs on "Determining fastest mirrors") Could not retrieve mirrorlist http://mirrorlist.centos.org/?...
1
vote
2answers
43 views

Execute multiple ssh commands with different switch

I have a bash script for copying two files from a remote machine (that I cannot control), stored in a a path that needs root access. Here it is: ssh administrator@host "mkdir ${DIR}" ssh -t ...
0
votes
1answer
21 views

Clone disk of a running VM and run it on VirtualBox

I'm in the following situation: I need to "clone" the disks (sda, sdb) of a running CentOS VM over SSH (i did this step by following this guide) and deploy them on something like VirtualBox. I tried,...
0
votes
1answer
27 views

move files from multiple source to multiple destination in one command

I am running ssh command and doing move command in it. ssh $USER_ID@$DESTINATION_SERVER "mv /source /destination" This is working fine. But I have to do this with multiple files in many source and ...
0
votes
0answers
32 views

key_load_public: No such file or directory

I have a problem on my Ubuntu server. When I try to ssh from that server to a second server, I get this error: federico@federico:~/.ssh$ ssh root@federicolivieri.noip.me -vvv OpenSSH_7.2p2 Ubuntu-...
0
votes
0answers
38 views

can not add key to ssh agent with ssh-add, because it asks for a pass-phrase

I just generated an SSH key, without a passphrase, to run some scripts that pull files from GitHub. However, I was having issues so I ran ssh -vT git@github.com which according to the debug statements ...
0
votes
1answer
54 views

Copy file via scp from a remote machine that need root access (with remote root access disabled) [duplicate]

I'm on the machine A, and I want to run a bash script from A to copy some files from B via scp. Those files are stored in a path that needs root access to be accessed but root remote access is ...
0
votes
2answers
36 views

Problem using ssh with crontab

I need to establish a permanent ssh tunnel between private server behind firewall and a public server so that I can ssh into private server anytime via the public server. When I manually execute this ...
0
votes
0answers
23 views

ssh: permission denied (publickey) after restoring to a backup that was known to work at the time of backup [duplicate]

So I have a few servers set up behind a bastion. I usually hop from bastion -> server A -> server B using agent forwarding. One day I try to log into server B and for no reason apparent to me I gives ...
1
vote
0answers
20 views

Access office URL through browser outside office

I work as a web developer in a office. I have a linux machine as a work machine. I develop code then test it on a browser. I can only access the URL that I use to test my pages inside my office. I ...
0
votes
0answers
35 views

ssh proxycommand authentication

I found this on the ssh man page: SSH_ASKPASS If ssh needs a passphrase, it will read the passphrase from the current terminal if it was run from a terminal. ...
0
votes
1answer
66 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 ...
3
votes
2answers
94 views

How to stop an ssh server on arch linux

When I run systemctl start sshd.socket on my Arch Linux machine, then log into the server from my mac, then run systemctl stop sshd.socket on my Arch Linux machine, nothing happens until I ...
2
votes
1answer
54 views

How can I mount encrypted folder via SSH in Synology NAS?

Now I mount an encrypted folder: open browser and login to NAS gui click Control panel -> Shared Folder > Encryption > Mount enter key after folder is mounted: rsync -ah --progress --delete /path/*...
1
vote
1answer
42 views

SCP through multiple hosts

The question describes how to SSH into a machine that can only be accessed through one or more hosts (that can also be SSH'd into). Is there an equivalent way of using scp? That is, copy a file to my ...
2
votes
1answer
35 views

Appending a string to a file from remote ssh

I want to ssh to a node (which is passwordless) and append $spool_as_final_name true to a file /var/spool/torque/mom_priv/config. Note that is mandatory to put $ in front of the string. So, I wrote ...
0
votes
2answers
19 views

privoxy + ssh forward remote http request to local web server

My local machine does not have a public IP and the IT department cannot setup an NAT for me, I want to setup a proxy on my remote public server which will forward the request to my local server. I ...
1
vote
0answers
18 views

SSH2_MSG_SERVICE_ACCEPT received then hangs [closed]

What is the most common reason for SSH to hang after this (in debug mode)? ... ... debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: ...
0
votes
0answers
21 views

ssh stops working properly Solaris 11

I have a Virtual Machine in which I usually connect by ssh, and it works very good. But after a while it stops working, I can ping it, and when I ssh it, it shows the authentication screen, I enter my ...
3
votes
1answer
58 views

tried creating duplicate root user, can't connect to server anymore

I'm new to Linux so keep that in mind when offering advice. I became over zealous and ran the command here: http://www.shellhacks.com/en/HowTo-Create-USER-with-ROOT-Privileges-in-Linux useradd -ou ...
0
votes
1answer
41 views

Problems with SSH ProxyCommand [closed]

i have some problems with the ssh proxycommand. The authentication on the proxy works fine, but when i want to login to the remote-host it fails. The problem seems to be, that the proxy tries to login ...
3
votes
1answer
31 views

can't login in new user via ssh 'server refused our key'

There are a number of similar questions, for example SSH: "Server refused our key" with no reason However, I've gone through the suggested checks and can't seem to get a new user to connect ...
1
vote
1answer
62 views

Cannot SSH into WD my book [closed]

The only two users on my NAS that I can SSH to are the defaults 'root' and 'admin'. Answers that I've come across so far are like this, where I set things in /etc/ssh/sshd_config like AllowUser ...
0
votes
0answers
50 views

Bad host key from server — paramiko SSHException

I'm trying to connect to a remote host via pysftp: try: with pysftp.Connection(inventory[0], username='transit', private_key='~/.ssh/id_rsa.sftp', port=8055) as sftp: sftp.put('~/test.file') ...
0
votes
2answers
46 views

On-Demand SSH Access for outside company [closed]

We have a number of Linux (debian) servers running a custom app. We (more often than we thought) need assistance from the vendor, and need to grant them with SSH access to the servers. We're looking ...
0
votes
0answers
20 views

Set variables into script before or after SCP [duplicate]

I have two scripts out and disk_check.sh. The main script is the out which exports multiple variables but I need two variables set in disk_check.sh which are: VOL and VM_VOLUME. So my out script ...
3
votes
2answers
65 views

How do I download a file from a host i'm already connected to over ssh [duplicate]

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp ...
3
votes
0answers
18 views

Can SSH public key authentication use pam_group?

I'm configuring some servers to use LDAP (via PAM) to authenticate users. Additionally, I use pam_group to add all users to some system groups like audio/video/vboxusers/.... My PAM configuration ...
0
votes
0answers
21 views

Checking for File existence in Remote Machines [closed]

I m trying to code a script that checks for existence of various files, between different servers, and then implement a GUI on it with status indicator buttons. The script will run on Windows, and ...
0
votes
0answers
47 views

Linux - Cannot connect using ssh key

I used to connect normally to the website on digitalocean using ssh keys and it works normally. Currently I tried to connect and suddenly I keep getting: ssh_exchange_identification: read: Operation ...
1
vote
1answer
66 views

piping text file to telnet over ssh

I would like to pipe a text file with commands to a telnet session I have open on a ssh client, Is this possible? an example: I have a text file cmds that contains commands like FirstFunction(A,B,C,...
1
vote
1answer
85 views

Completely new to SSH

I'm trying to SSH from Debian (Jessie, installed as chroot environment in Chrome OS) to Arch on the same network, and I keep getting an error saying the connection was refused because of a public key ...
1
vote
1answer
59 views

How to connect to device via SSH over direct ethernet connection

I have a device that I need to connect to over SSH. The device is connected to my workstation via a direct ethernet connection. I'm attempting to assign the connected device an IP address somehow that ...
1
vote
2answers
47 views

Enable/Disable X on an established SSH connection

So at my job I SSH from my CentOS machine to other local CentOS machines. We use an application that runs in both X11 and terminal. Some features are available exclusively in terminal and other ...
1
vote
1answer
32 views

Using shell code for LocalForward in ssh config file

I have this configuration in my ssh config file, Host *+* ProxyCommand ssh $(echo %h | sed -e 's/+[^+]*$//;s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/') -W $(echo %h | ...
0
votes
0answers
16 views

Can't connect to Amazon Ec2 via SSH

I just installed a cloud VPS on Amazon Ec2 today. I can connect to the VPS via SSH port 22 but I unable to connect into it again after changed the SSH port to 35000. I've allowed TCP - 35000 via ...
3
votes
1answer
39 views

how to set globstar for noninteractive shells

I would like to execute commands noninteractively on a remote server that use the ** globstar option. However, globstar is not set by default on the remote, and bash doesn't source any files in ...
0
votes
0answers
29 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 ...
3
votes
3answers
275 views

How to print a specific column with awk on a remote ssh session?

When using df -h | grep /dev/root | awk '{print $5}' I get the usage of my SD Card in my Pi: 78% But when I use /usr/bin/ssh -i /path/to/key user@server "df -h | grep /dev/root | awk '{print $5}'" ...
6
votes
1answer
41 views

Current SSH connection properties (cipher, auth type, timeout, etc)

After a connection is established with SSH, how we can get the current connection properties ? Is there a way to know what cipher(s) is being used ? Properties of the authentication ? Protocol ...