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

learn more… | top users | synonyms

-1
votes
1answer
29 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
50 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
2answers
38 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
1answer
60 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
0answers
42 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
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
1answer
1k views

ssh secure shell: “connection closed by remote host”, not acquiring the key

I am very new to using this ssh secure shell to access a remote workstation. This is the third time I have received the message: Server responded "Connection closed by remote host". The ...
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
37 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. ...
3
votes
2answers
2k views

SSH Agent Forwarding on server

I'm struggling with the concept of SSH Agent Forwarding. This is what I've done so far: Create default identity local (ssh-keygen) Install the public key on bitbucket Now I want to connect to a ...
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 ...
1
vote
2answers
244 views

SSH: shell opened in IP namespace

I'm trying to force users logging in through SSH to have a shell inside IP namespace. I've tried replacing the shell in /etc/passwd with something like ip netns exec sshns /bin/bash but it didn't ...
0
votes
1answer
72 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
98 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
61 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
45 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 ...
4
votes
3answers
6k views

How to start SSH daemon on boot on Linux Mint Debian v2

I'm using Linux Mint Debian v2, 64-bit. I noticed recently that my ssh daemon does not start automatically on boot. It used to. I'm not sure if it had to do with my UFW configuration or sshd_config ...
5
votes
4answers
13k views

Cant ssh, connection terminates immediately with exit status 254

The most recent thing I remember is changing the soft and hard memlock ulimit to unlimited. Now I cant ssh into the machine. This is the ssh log. Authenticated to IP ([IP]:22). debug1: channel 0: ...
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
21 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
19 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
1answer
42 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 ...
2
votes
1answer
373 views

“X11 forwarding request failed” when connecting to github.com

I'm getting a bizarre error message while using git: $ git clone git@github.com:Itseez/opencv.git Cloning into 'opencv' Warning: Permanently added the RSA host key for IP address '192.30.252.128' to ...
0
votes
0answers
23 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 ...
1
vote
1answer
63 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 ...
3
votes
1answer
34 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 ...
8
votes
2answers
37k views

bash shell - ssh remote script capture output and exit code?

I wish to use shell to invoke a script on a remote server. I would like to capture the output of that script (its logging messages) and the exit code it returns. If I do this: ssh user@server /usr/...
3
votes
5answers
22k views

Error `No protocol specified` when running from remote machine via ssh

I have a script, simply to run my Graphical (GUI) Application, as below. #cat gui.sh #!/bin/bash ./gui -display 127.0.0.1:0.0 When I run it from local machine (./gui.sh) it runs perfectly ...
2
votes
2answers
1k views

Cannot ssh into a fresh install of CentOS minimal on lan

I've downloaded CentOS 7 Minimal and installed on an old laptop. I want to be able to ssh to the machine from other machines on the same lan. But I keep getting this error .. ssh: connect to host 192....
0
votes
0answers
82 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') ...
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 ...
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 ...
1
vote
1answer
88 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 ...
34
votes
3answers
60k views

Can I connect to Windows machine from Linux shell?

I can connect to Linux machines from Windows using PuTTY/SSH. I want to do the other way round - connect to a Windows machine from Linux. Is this possible?
3
votes
0answers
19 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 ...
2
votes
3answers
2k views

Does /var/log/secure log successes?

Short one that I've been unable to find a decent answer for. Centos 5.10 server, trying to trawl through all the logs I can to see what IPs successfully accessed the server. I've been mucking about ...
1
vote
3answers
10k views

Enable ssh root login

I have access to a CentOS server with a user that its not root but belongs to the sudoers list. I do not have the password of root, nor I can't find out what it is (policies of the people who gave me ...
0
votes
0answers
49 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
68 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 ...
0
votes
2answers
44 views

Set startup folder for SFTP to be other than /home/username is throwing me permission issues

I just installed a CentOS-based to serve as an SFTP server. I need all incoming files to go /mnt/inbound/ folder, so I want to ensure that every user from this host that logs in via SFTP gets /mnt/...
2
votes
0answers
58 views

password fails over ssh, works locally

This weekend I really dove into unix and got a Arch installed on an old computer and got it to serve my website. So I'm a bit of a noob. Today I went to copy a database file from my Mac laptop to my ...
7
votes
1answer
50 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 ...
1
vote
2answers
49 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 ...
4
votes
3answers
507 views

Disabling ssh password authentication does not work on my debian VPS

I have a Debian 7 VPS setup. I just enabled SSH Key authentication and disabled password authentication but the disabling did not work. When I attempt to SSH into my VPS, it prompts me for my SSH Key ...
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 ...
7
votes
1answer
1k views

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my ...
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 ...
3
votes
3answers
278 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}'" ...
0
votes
0answers
30 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 ...