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

learn more… | top users | synonyms

0
votes
1answer
30 views

SSH - How To Make Three Computer Tunnel?

ComputerA connects though putty to Server at port 77, and there is a reverse tunnel set up from the Server at port 6666 to ComputerA at port 22. ComputerA also has a ssh server set up with a user ...
2
votes
3answers
41 views

linux + ssh + perform two tasks in one ssh and print to CSV

the following command print the two values in one ssh shut ssh test01 "hostname && cat /etc/sysconfig/rhn/rhnsd " test01 INTERVAL=240 but how to change the syntax in order to print the ...
0
votes
0answers
21 views

wget probelm with a tunnel connection using ssh

I know this is not a new question, but I have researched a bit and so far none of the answers I've seen gave me the answer. I have this situation: I´m working on a campus where the network is highly ...
3
votes
1answer
51 views
+50

mosh-server needs a UTF-8 native locale to run

I am trying to connect from my Gentoo to RHEL server. Both have mosh installed, however I get this error: petanb@localhost ~/Documents $ mosh root@server mosh-server needs a UTF-8 native locale to ...
0
votes
2answers
38 views

.sh query - running a ssh task

This is on a macintosh but it's still unix command. I am running some computers on a network that have file sharing turned off because of security so the only way to connect is via ssh. I need to ...
1
vote
0answers
36 views

Check if laptop is asleep

Does anyone know to check via SSH or bash script whether or not my laptop has "fallen asleep". For some reason whenever my laptop falls asleep my drawings (on /dev/fb0) are over ridden by the ...
3
votes
1answer
46 views

When using an SSH alias, why is SSH ignoring my (valid) Kerberos ticket?

I am successfully connecting to my university's network via ssh with Kerberos ticket authentication. Normal, verbose operation (kinit a ticket, then ssh user@hostname) works fine. The Problem When ...
0
votes
1answer
28 views

Does the default per user .ssh/config file override all options in system wide ssh_config? [duplicate]

The ssh man page says that the -F switch: Specifies an alternative per-user configuration file. If a configuration file is given on the command line, the system-wide configuration file ...
1
vote
1answer
48 views

ssh-agent: How to keep the login key, and add more identities?

When I log in to my local Ubuntu 14 instance from Windows (I use SecureCRT as a SSH client) using my RSA key, the key is available for forwarding for further SSH sessions (it is listed with ssh-add ...
2
votes
1answer
28 views

Stealing and reattaching a running process [duplicate]

It's sunday and I left an instance of R running in the office. The script finished running, and I would like to save my workspace without going to the office. I can ssh to the computer, but I have not ...
1
vote
3answers
26 views

Unison - login over ssh with different username at remote server

I am trying to set up Unison and am testing the connection. I run this command from the documentation: unison /var/www ssh://192.168.1.102//var/www but it tries to log into the remote server using ...
0
votes
1answer
37 views

Script for connection with ssh then command once connected

I need to write a script that connects to a remote server, then once connected, connects from there to another server, then changes directory. The following of course does not work (it connects to ...
1
vote
2answers
48 views

Host key verification failed (exit code 255) while using pdcp

I am trying to install a particular software across all our machines one by one so I decided to use pdsh. By default, it will operate on several machines at once in parallel, but I will be using the ...
1
vote
2answers
68 views

“SSH Virtual Kiosk”. Does “PermitEmptyPasswords yes” work? - How to make ssh user with empty password, so random users can use it?

How to make properly secure ssh account with empty password for running trusted binary? I'd like to make a kind of "virtual ssh Kiosk" for random users, while limiting "demo app" behind ssh ...
3
votes
2answers
38 views

How can I auto-close dropped SSH connections?

When I work on my server remotely, sometimes my SSH connections get dropped due to network issues. When I re-connect to my server, the dropped sessions remain open. I can see them when I run w. I'm ...
1
vote
3answers
47 views

How to understand ssh-keygen and ssh-copy-id?

As far as my understanding, machine(A) ssh-keygen generates a key, and ssh-copy-id gives this key to another machine (B), is it? But when this is done, to test whether this is done or not is using ...
0
votes
1answer
29 views

Impact of removing ssh_config file

Pretty new to Linux here. Trying to get a better grip on the OS.  Here is my problem - I have a question about the impact of removing ssh_config file from a Linux box. I was having some cipher ...
0
votes
0answers
39 views

Can't ssh into my server from another computer

I used to be able to ssh into my server from other computers. But I stupidly messed up my remote connection setup a couple weeks back (I don't remember what I did...) and now I can't ssh into my ...
0
votes
0answers
20 views

Need to fix user access on centos

I screwed up user permission for my account "yann" on a centos 7 server. I would like to have that user to access rw on all folder under /home to manage the webserver folders. Each top level folder ...
1
vote
1answer
36 views

cannot get screen command to execute code containing DISPLAY=:0

I am trying to ssh into a remote machine and run a shell script, which opens a GUI. I want the GUI to open on the remote machine and remain open (so I am using DISPLAY=:0 nohup). I tried: ssh -t ...
0
votes
1answer
165 views

ssh key_load_public: invalid format warning

SSHing into my system succeeds but even without the -v flag I get key_load_public: invalid format message. Below is the output w/ using the verbose flag. Specifically debug1: key_load_public: No ...
0
votes
2answers
27 views

Can't start remote WildFly with ssh

When executing remote script with SSH: ssh user@192.168.0.10 -t sudo /etc/init.d/wildfly start WildFly not started. If I run ssh user@192.168.0.10 -t /home/user/my.sh my.sh: !#/bin/bash sudo ...
3
votes
2answers
40 views

Feedback when entering passwords, without revealing length

I often SSH into a machine and use sudo on it. When entering passwords, I'm always afraid that another window will steal the focus. However, I don't want to display asterisks (with pwfeedback, for ...
0
votes
0answers
56 views

Executing remote code with arguments

Why this: ssh -i ~/.ssh/master.pem ec2-user@xx.xx.xx.xx 'bash -s' < `dirname $0`/elements/"$element" returns hostname.sh test-5000: No such file or directory when $element is not a just a single ...
1
vote
1answer
127 views

Being Prompted for Password After Already Registered Public Key On server [closed]

NOTE: This is not a duplicate to the popular question. Why am I still getting a password prompt with ssh with public key authentication? I had an original post but I did not get much answers helping ...
0
votes
1answer
61 views

Everytime I restart my Digital Ocean server, .ssh/authorized_keys changes

So I am facing a strange issue with my digital ocean server. Everytime I restart the server manually from the website my .authorizedkeys get reset. It always has a value ssh-rsa ...
2
votes
1answer
35 views

Ways to restrict remote user to only access a remote database

I want to be able to setup a remote user that can update a PostgreSQL database on a production server. I have two machines, one is a local server that I use as a command and control system, named ...
3
votes
1answer
40 views

Can I use `internal-sftp` when using wrapper script with `ForceCommand` in sshd?

I use /etc/ssh/wrapper.sh script, like in tutorial, that filters which commands are allowed to be run via ssh and logs them. Currently when internal-sftp is required, I use /usr/lib/sftp-server. Is ...
0
votes
1answer
38 views

autossh over many LocalForward ports

I have to connect to a base server, call it server1, and the from there, I can access many other servers (host1, host2, ...host99.) I have the autossh working for server1 with no problems - it ...
3
votes
2answers
50 views

How to make ssh account capabele to only sshfs and rsync?

I'd like to make ssh account that is capable of doing two things: mounting (can be one) directory via sshfs performing backup&recovery of his/her desired directories using rsync I would love ...
2
votes
0answers
56 views

ssh X11 forwarding

I am trying to connect ssh from my laptop to my raspberri pi 3b locally. However when I try to connect by: ssh -v user@local-raspberri-IP it gets stuck at X11 forwarding. The output that I get is: ...
2
votes
2answers
42 views

SSH to a remote Machine using a different Local ID

I need help related to SSH. Let me explain a scenario. I am logged in as "user1". Host A: user1 user2 Host B: remoteuser. There is a trust relationship setup between user2 on Host A and ...
1
vote
2answers
55 views

Why does SCP fail when “RequestTTY force” option is enabled?

In my SSH config file, I have to enable the RequestTTY force for some important reasons. And currently my config file looks like this: Host x.x.x.x HostName yyyy StrictHostKeyChecking no ...
1
vote
4answers
64 views

Issue with ssh && apt-get, need advice

I decided to dust off my Beaglebone Black Rev.C and figured before I do much of anything, I should get everything up to date. I created an SD card with the new Debian 8.3 image and installed it. No ...
0
votes
3answers
77 views

I want to copy a remote txt file via SSH, but without using root access

I want to copy my hosts to remote /etc/hosts but it doesn't work. I know root SSH access makes things easier, but IMHO root SSH access is a little dangerous. cat /etc/hosts|ssh samba2 "sudo su -c ...
0
votes
1answer
51 views

unable to SSH to eth1 after bringing down eth0

I have a remote machine with 2 interfaces: eth0 and eth1. I am able to ssh using eth0 ip address as well as eth1 ip addr. However, things go strange once I bring down eth0 using the command ifdown ...
0
votes
1answer
42 views

rsync over ssh without typing the password each time [duplicate]

I got a bash script to synchronize data between two computers. It works fine but I have to type my password every time the rsync command is called. #!/bin/bash sourceIP="192.168.178.128" ...
0
votes
1answer
39 views

Rental server refuses SSH connection; won't allow authorise me to download my SSH key

I am attempting to connect to my rental server via ssh to install MemSQL for a project. I have written the following in ~/.ssh/config: HOST eHosts HostName e9.ehosts.com Port 2222 User orderof3 But ...
1
vote
0answers
26 views

Strange X11 forwarding issue [closed]

I have a strange issue regarding ssh x11 forwarding. Assume I have an host named node71. Firstly, I start Cygwin/X and mintty in Windows, now the local DISPLAY=0.0 Next, I can do ssh root@node71 -Y, ...
0
votes
2answers
40 views

How to suppress debug2 messages during SSH session?

When I am logged into my home Linux machines via SSH, I get the following debug output a few times every minute: debug2: channel 0: request window-change confirm 0 When I am editing files in nano, ...
0
votes
1answer
29 views

Source ~/.bashrc when using the shell recorder `script`

I am using the first answer from How to automatically record all your terminal sessions with script utility to record my terminal sessions, however, I can not figure out how to get my bashrc to be ...
0
votes
0answers
20 views

How to connect Ubuntu 14.04 NIS Client to a IRIX NIS Server

I'm trying to connect a new Ubuntu 14.04 Server (64Bit) as NIS Client to an SGI Irix NIS Server. It's a standard installation of Ubuntu, only ssh, nfs and nis (pam and other stuff came along by ...
-2
votes
2answers
37 views

linux + ssh login took time from one server to another

I have a central Linux server (Red Hat version 6.5), and from this server I establish SSH sessions to other servers. To one server the SSH login took around 5 seconds, while to all others it took ...
-7
votes
1answer
42 views

How To Copy Files From Local Windows Machine To Remote Server [closed]

I want to copy a file from my local machine to a remote server. My local machine is running on Windows 10 and I use PuTTY to connect to the remote server, which is running Ubuntu.
0
votes
1answer
67 views

Why “lsof” is not working when it used in ssh? [duplicate]

I found this command line is not working ssh i01n10 "/usr/sbin/lsof -p $(pgrep -nf a.out)" it shows the error lsof: no process ID specified However ssh i01n10 "$(pgrep -nf a.out)" ...
1
vote
1answer
30 views

How can a daemon user connect through SSH? [closed]

I have launched process named redmine that launched by deamon user – redmine. Some inner redmine (as process) plugin needs SSH connection to outer service and make it from redmine (user), but this ...
0
votes
1answer
25 views

Instantly getting Write Failed: Broken Pipe with SSH to an embedded system

As said above, when I try to SSH into my embedded system (a De0-Nano-SoC FPGA development board running Angström with Kernel 4.1) I get a "Write Failed: Broken Pipe"-Error and get disconnected. I read ...
2
votes
1answer
103 views

bash: cannot create temp file for here-document: No space left on device

one day I was doing some stuff and I might have changed something which I shouldn't (I was working on the /etc/network/interfaces file). By the way, this is my OS: $ uname -a Linux ribas ...
1
vote
1answer
30 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
0
votes
4answers
115 views

How to run subshell commands over SSH?

I have a cluster of computers which are connected via passwordless SSH and I have written a utility which runs a command over the entire cluster. The way it does it is by picking up machines present ...