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

learn more… | top users | synonyms

1
vote
0answers
36 views

Windows directories keeps getting unmounted on two identical Red Hat servers

We have a pretty severe problem at my research center. I have, together with IT, set up an infrastructure like this: Users use their laptops at their desks. They all have a home-folder at a storage ...
0
votes
2answers
41 views

Combining two scripts into one

I have two scripts. Both scripts are on the same server (serverA) The first one (serverA) makes an ssh connection to the other server (serverB), and executes the second script, e.g *script1* ssh ...
1
vote
1answer
38 views

How can I use the host's keyboard for a 'remote' SSH session from a tablet computer?

The perhaps slightly odd requirement is this: I have a computer/laptop running Ubuntu I have an iPad from which I can SSH into said laptop sitting right next to it I'd like to use the iPad as an ...
0
votes
1answer
30 views

play m3u with vlc on raspberry pi using ssh

I would like to play m3u with vlc on raspberry pi using ssh (I don't have any screen to connect to the pi). I tried the following answer: Program run in SSH accessing pulseaudio on the machine where ...
0
votes
3answers
39 views

strange vi behavior on OSX Debian ssh terminal

While creating a swapfile I issue vi /etc/fstab as root. fstab file comes up, great. Issue G $ to jump to end of line and i to enter INSERT mode. Press the right arrow to move the cursor over by one ...
0
votes
0answers
10 views

Writing a unique number in a parallel ssh / clusterssh environment

I'm trying to set up a cluster of Kafka servers and I'm currently using clusterssh for it, which works great. As one step of the setup, I have to assign a unique id to every cluster (as in 0, 1, 2, ...
1
vote
1answer
28 views

How do I use `lsh` as client for an OpenSSHD server with no password?

I want to try lsh but it seems awfully hard to getting it to talk to my OpenSSHD server. How do I do that?
0
votes
1answer
38 views

How can I avoid always having to use `eval 'ssh-agent -s'`

I can't figure out why everytime I ssh back into my server I always have to start my ssh agent with the command eval 'ssh-agent -s' followed by ssh-add <my_key.pem> in order to successfully ssh ...
0
votes
1answer
68 views

How to prompt a password automatically in Unix Shell script? [duplicate]

I have the below line in a script. When I run it, it prompts for a password to copy files in the server. I need the password to be taken from the script. Please help me resolve this. for i in cat ...
0
votes
1answer
27 views

No menu for VNC view

Problem: I have a VPS on linode that installed ubuntu 14.04. In the Real VNC viewer on my local machine, I see a screen like this. The problem is, although I can navigate the file system in this ...
3
votes
1answer
52 views

root cannot connect to symlinked socket of other user

I use oh-my-zsh's ssh-agent plugin to have a static symlink to my current SSH_AUTH_SOCK created. When connecting through SSH with agent forwarding enabled the file /tmp/ssh-agent-$USER-screen is ...
1
vote
2answers
56 views

How to use single quotes inside ssh and sqlplus

Below script helps me to ssh and do sqlplus to fetch info from database. I checked and it worked well but the only problem is if i use single quotes in the sql query then I am getting an error since I ...
-1
votes
4answers
82 views

Ssh into a remote server, but my organization has blocked port 22

I am using Redhat Openshift server to deploy my webapps. To access the contents of my application I have to ssh into their server. Example ssh 56555ff90abcdefbf6e000077@appname.rhcloud.com ...
1
vote
2answers
58 views

Using BASH to determine if X11 forwarding is enabled from SSH

After logging into a network via SSH, the network's default shell being used is BASH. It is then possible to run applications which utilize graphics only if X11 forwarding has been enabled which I ...
3
votes
2answers
41 views

How to interpret ' character in a string passed through SSH

New to BASH and Linux and need some quick help. I have written a quick bash script that asks the user for a username and password from the command line and passes that info to a remote server later ...
0
votes
1answer
19 views

X Forwarding over SSH when switching users [duplicate]

How do I forward X when switching users? I can ssh -X username@server.example.com and open GUIs just fine. However, then when I sudo su to root, the X11 forwarding seems to stop because the windows ...
-2
votes
1answer
24 views

What happens if I block ssh connection from any IP address? [closed]

Does it any good for security, if so why developers put it in, in the first place? I just started learning about iptables and i wonder why there is such an option? What does it do?
2
votes
1answer
105 views

How to Run a GUI Application on Remote Server's X11 Display via SSH

In this picture, on my virtual-machine I have Redhat running with an SSH server, and I'm remotely logged-in via SSH. I want to run gedit via SSH but have the gedit window open on the remote Redhat ...
1
vote
1answer
40 views

How to diagnose SSH connection timeout issue?

I am Debain and Linux beginner so please bare with me. I have a VPS running Debian 7, that I connect to using PuTTY from my Windows machine. Most of the time, PuTTY connects fine and I can log in ...
1
vote
1answer
56 views

How do I get a service on a remote CentOS 7 server to persist after I log out?

I am experimenting with running Spring Boot apps on a remote CentOS 7 web server which has been successfully serving up apps on Apache and a stand-alone tomcat instance since day one. However, when I ...
0
votes
2answers
33 views

passwordless ssh setup without user directory [duplicate]

passwordless ssh without user directory? .ssh should be stored in a user directory as far as I understood. ServerA: Linux without /home/users ServerB: Linux with /home/users client: Linux/mac etc ...
1
vote
1answer
40 views

Managing iptables for specific ips and ports

I disable firewall like so: #!/bin/bash iptables -F iptables -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT Update I also enable my firewall: #!/bin/bash ...
1
vote
1answer
40 views

How to kill telnet started via SSH?

I am sending a command to remote server via SSH as ssh raja@remote_host "telnet 192.168.56.101 8080" But we all know that , to quit from telnet we need to get back to telnet prompt with CTRL+^] ...
-1
votes
1answer
40 views

Remote app - bash: cannot execute binary file [duplicate]

I have an app in a remote Linux machine. I am trying to execute the app via ssh, but I get the error: bash: /app: cannot execute binary file Why is this happening? The application works fine in the ...
3
votes
2answers
69 views

How to monitor WGET download progress after closing SSH session

I have started downloading my ISO's etc directly to my fileserver using wget. After I close the ssh session, how can I check back on the download process? Scenario: I start the download, then shut ...
-1
votes
4answers
56 views

Access directory on Linux machine from a Windows 7 machine over WAN

I want to access a directory ON a computer with Linux Ubuntu 14.04 installed as OS, FROM a computer with Windows 7 installed as OS, IN Windows Explorer. In case both computers have Linux Ubuntu ...
3
votes
1answer
39 views

What is the purpose of the 'ssh' group?

There is a system user named sshd on my system, and a group named ssh: $ cat /etc/passwd | grep ssh sshd:x:120:65534::/var/run/sshd:/usr/sbin/nologin $ cat /etc/group | grep ssh ssh:x:117: My guess ...
0
votes
1answer
28 views

Can I read the public SSH key of another user? [duplicate]

The public component of SSH keys theoretically don't need to be kept private. It was therefore to my surprise that I was unable to read the public key of another user on the system: andreas:~$ cat ...
0
votes
1answer
44 views

SSH still asking for password even after I have tried everything (that I know of)

ssh is still asking for a password, even though I did everything by the book. I have included all output, right from the start. Any ideas? Thanks! Gary 1) Generating public/private rsa key pair and ...
1
vote
0answers
31 views

Vim losing ability to copy to client clipoard over SSH

I have setup vim to be able to yank text from the server instance of vim to the clipboard on My client's operating system (through the SSH connection). The basic setup is Client side ...
0
votes
1answer
50 views

Amazon [Ec2 Linux Instance] SSH not working after increasing Open Files / File Descriptors (FD)

I am not able to ssh my ec2 instance [linux based] after I have executed following command. [Before that I am able to ssh to server] # vim /etc/sysctl.conf I have update file-max number to 4000000 ...
2
votes
1answer
30 views

static ip adress for remote administrating distant home computer via ssh?

i've set up the pc of my grandmother with debian and dhcp. I have to administrate that pc, so the best option is obviously ssh. The problem with that is just dhcp changes obviously the ip adress from ...
0
votes
2answers
173 views

What are the keys accepted by openSSH?

Question is simple: What are the (private) key types and (their specification - format, syntax) accepted by current openSSH? The vague answer "the keys generated by ssh-keygen" is not accepted - ...
-3
votes
1answer
69 views

authentication in linux [closed]

I want to allow a particular user to login without any authentication but without using any username, digital signature or key. I used the Match command in ssh but nothing happened
1
vote
1answer
26 views

How to programatically disconnect a ssh user?

I need to force a disconnect all sessions for a given user. Since this user might be root as well I think it would be better to avoid killing the parent sshd process along the way. Is there a ...
0
votes
1answer
35 views

Can't setup ssh connection with bridge

I would like to set up an ssh connection to a device, which is bridge. It's a device to put between router and PC and the traffic just goes through. I don't have a ip-adress assigned to the bridge, so ...
1
vote
1answer
33 views

Run for loop via ssh

Good day All, I'm attempting to run a for loop via SSH. The loop is used to get the last login of each user that has an account on the server, ssh 172.20.2.1 '''for i in `cat /etc/passwd | awk -F: ...
1
vote
1answer
50 views

ssh on unix socket

I have some old unix running as vm on VirtualBox server those vm had the serial ports simulated by unix socket for example: an old AT&T 2.1 SVr4 has socket on /tmp/att1 to connect i did minicom ...
2
votes
2answers
30 views

Exported variables inside ssh session are empty

I am trying to export a variable inside a ssh session and reference the variable in the next write command. sshpass -p "password" ssh -t -t my-box <<EOF export newUrl="this is a url" sudo ...
1
vote
1answer
30 views

How to export a bks keystore on debain 7.9 wheezy

I need to generate a keystore.bks file to use for android development. I cannot figure out how to export a bks keystore without using a GUI tool. I have server space on Google Compute Engine which I ...
1
vote
2answers
53 views

Offer or push menu to ssh users

I want to present any user that logs into my debian unit via ssh a menu automatically. Currently they must log in and run the menu.sh script manually on the command line. Can this be done?
5
votes
2answers
308 views

Running remote command with ssh getting “bash: /dev/fd/63: No such file or directory”

I have /root/test.sh on a remote server, which has the following content: #!/bin/bash date On the remote server, I get the following output: # ./test.sh Fri Dec 18 07:41:10 EST 2015 # bash ...
2
votes
2answers
79 views

Passing multiple of arguments with whitespaces through a script to ssh

I want to remove multiple files from remote server. I have all files under one array in a script and I call other script which will remove files. Let output of "${b[@]}" is: ...
3
votes
1answer
44 views

gpg-agent instead of ssh-agent

I have a Yubikey 4 and I want to use my GPG keys stored on this to authenticate to SSH servers.I want to use GitHub for a start. I have already added my GPG authentication key to GitHub. My problem ...
1
vote
1answer
34 views

Open remote Unix server files in local Emacs

I am using Emacs 24 in Ubuntu. Could you please help me on how to open remote server files? The remote server runs CentOS. I am logging into the remote server over SSH using a private key. I tried ...
-1
votes
1answer
37 views

How to enable tab completion in sftp like Centos7 on Slackware?

On Centos7(and 6,5,and suse..) i see sftp has tab completion,like "readline" function,like bash. This not happen in Slackware,i have tried to recompile ssh "with-readline" "enable-readline" but ...
0
votes
2answers
47 views

set up secure connection over SSH

I'm setting up a server application which requires to establish a secure connection over SSH2, e.g. a client must open SSH2 connection to the server to reach specific application: % ssh -s -p5000 ...
-1
votes
3answers
85 views

bash script to login to multiple Linux servers and collect the output of multiple commands through ssh [duplicate]

I need to login and collect output of below commands from multiple GNU/Linux servers through SSH. I have done password-less SSH authentication. I wanted to do this with bash script. df -lh | awk '{if ...
1
vote
1answer
24 views

ssh asks for password due to unable to locate file

I've been messing around with my SSH keys, and now I'm trying to get it to work. I've moved over the .pub and the SSH files that I use for connecting to the server which are called saleslist. Now ...
2
votes
2answers
50 views

how to login using ssh with password? [duplicate]

I want to login using ssh and password store in a text file or may be in a varible I am trying below method but i am getting an error please suggest me correct way. echo "123456" | ssh ...