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

learn more… | top users | synonyms

3
votes
1answer
57 views

restart X11/Xwindows without disconnecting ssh session

Is it possible to restart an X11/Xwindows session without having to exit the server I've SSH'd to? I'm currently using iTerm on OSX, and every so often X11 (I guess) times out (giving me the error ...
3
votes
1answer
111 views

Syntax error with variable containing quotes

I have a bunch of Linux machines behind 2 gateways. To connect to set one I do ssh -o ProxyCommand="ssh gateway1 nc %h %p" machines_behind_1 ssh -o ProxyCommand="ssh gateway2 nc --proxy %h %p --...
1
vote
2answers
44 views

Can I detect if ssh key authentication will succeed before attempting?

I have a script that needs to run without any user interaction and that needs to set up some SSH port forwarding. It shouldn't prompt for a password - if SSH needs a password to proceed, I'd like my ...
-1
votes
2answers
35 views

errors using alias for an awk command

I'm attempting to add this alias to my .zshrc but run into errors. I've tried escaping the ==, ", and && values and still no luck. What am I missing? alias broke="ssh -t server@5.555.555.555 ...
3
votes
1answer
89 views

Why would ssh think there's a passphrase?

When connecting to the server with ssh I'm prompted for a passphrase, although the creator of the key hasn't set one and the file is a plain text private key. $ cat ~/.ssh/private.pem -----BEGIN RSA ...
2
votes
2answers
76 views

Combine Two SSH Commands

The first ssh command is done on my computer, I enter the key password, then put the second ssh command in while logged into the server. ssh -i cloudkey -L 6000:localhost:6001 admin@54.152.188.55 -p ...
0
votes
1answer
37 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
51 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
37 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
130 views

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
40 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
40 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
77 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
47 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 (/etc/ssh/...
1
vote
1answer
68 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 -l)...
2
votes
1answer
66 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
41 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
48 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
134 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
92 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 "pseudo-...
3
votes
2answers
71 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
123 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
31 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
91 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
27 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
65 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 &...
1
vote
1answer
730 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
39 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
42 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
60 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
144 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
85 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
58 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
76 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
58 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
69 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
62 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
46 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
95 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
66 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
98 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 "...
1
vote
2answers
78 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
56 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" sourceUser=...
0
votes
1answer
48 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
29 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
76 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
41 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
34 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
39 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
96 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.