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

learn more… | top users | synonyms

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
2answers
125 views

Unable to login with SSH-RSA key

This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys . The issue as exposed there is solved (about files modes of the ...
1
vote
0answers
32 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 ...
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 ...
3
votes
1answer
424 views

Making ChrootDirectory directory writable by SFTP user

If a user logs into a machine via SFTP, one can make use of ChrootDirectory keyword to give an illusion that user is in a root directory. But that directory is only writable by root user. I would love ...
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 ...
2
votes
1answer
58 views

Configure Tor Browser to run over SSH SOCKS proxy?

I'd like to proxy all of my Tor Browser traffic through my home network remotely over SSH. If I have SSH access to a computer in my home network and a Tor Browser bundle here, how can I set up the ...
1
vote
1answer
621 views

SSH: Permission denied, please try again

I need to connect to a server and don't know whats going on: me@pc:~$ ssh -v server OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/me/.ssh/config debug1: ...
-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
2answers
115 views

Why can't I authenticate to GitHub?

my_username@my_username-laptop MINGW64 ~ (master) $ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/c/Users/my_username/.ssh/id_dsa):Enter Enter ...
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 ...
5
votes
1answer
2k views

ssh-add -D doesn't erase stored keys from the ssh-agent

How come this happens?: stan@tcpc:~/.ssh$ ssh-add -l 8192 e0:45:5e:cc:45:3e:17:2b:a6:54:6f:8d:53:1b:j2:e3 github (RSA) 2048 25:41:53:a6:45:5d:ac:eb:5c:45:f8:ce:42:a9:he:aa BITBUCKET (RSA) ...
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 ...
8
votes
5answers
63k views

X client forwarded over SSH “cannot open display: localhost:11.0”

I have enabled X forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag ...
12
votes
4answers
9k views

Autocomplete server names for SSH and SCP

I have a few servers configured in ~/.ssh/config, such as alpha and beta. How might I configure Bash such that the commands ssh al<tab> and scp file.tgz al<tab> autocomplete the names of ...
1
vote
1answer
51 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 ...
1
vote
1answer
34 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
2answers
54 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?
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 ...
5
votes
2answers
313 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 ...
5
votes
6answers
16k views

sshfs always asking for password in fstab?

I'm trying to enter an sshfs mount in /etc/fstab with the following line: sshfs#oli@192.168.0.2:/media/usb0 /media/ExtHD fuse defaults,nonempty,allow_other 0 0 So that this volume is mounted at ...
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 ...
2
votes
1answer
77 views

How to know if I can use ssh keypairs?

After running successfully, my build script attempts to copy the final binary onto my FTP server using the scp command. Since the build takes a while, I don't want to be prompted for my password every ...
2
votes
2answers
81 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: ...
4
votes
1answer
172 views

Predicting the PID of previously started SSH command

This is the weirdest thing. In a script, I start an SSH tunnel like so: ssh -o StrictHostkeyChecking=no -fND 8080 foo@bar This starts an ssh instance that goes into the background, and script ...
43
votes
5answers
39k views

What is the point of sshd “UseDNS” option?

I know what it does, but i don't know why. What attack(s) does it prevent ? Is it relevant for all kind of authentication methods ? (hostbased, password, publickey, keyboard-interactive ...)
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
3answers
89 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 ...
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 ...
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
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 ...
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 ...
4
votes
5answers
16k views

Script to ssh and run a command doesn't work

Below is the script. I wanted to login several servers and check for the kernel version. #!/bin/bash #input server names line by line in server.txt cat server.txt | while read line do sshpass -p ...
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 ...
0
votes
2answers
41 views

Using Timeout in a Script with One Command, but Multiple Hosts

I'm writing a script that SSH into a device, SCP a file over, names it according to the device name and then goes on to the next one. My problem is if a device is not reachable the script hangs ...
7
votes
3answers
668 views

Is it possible that X11 can be forwarded through a SSH tunnel

I communicate with the server via a ssh tunnel, configured via Putty. Recently, I'm trying to forward the X11 through it, but it doesn't work. Is there any one work this way? Searched with ...
1
vote
0answers
49 views

SSH Remote Execution - checking server can do it?

I have a embedded device (Perle IOLAN+, an Ethernet to serial adaptor) that I can administer via SSH. From time to time, I need to log in and execute a command on this device. Logging in via SSH, ...
18
votes
7answers
4k views

OS X: how to keep the computer from sleeping during a ssh session

When I ssh into a OS X computer on my network the session lasts until the OS X goes into sleep mode. Is there a way to prevent this from happening during my SSH session, apart from physically bumping ...
0
votes
0answers
26 views

How to login one remote server to another remote server with different user name using different user private key?

I have 2 remote servers X and Y. I am able to login as user A with on remote server X using a private key. From server X to server Y I am also able to login as user A with the same private key. My ...
2
votes
1answer
54 views

How to allow unauthenticated logins over ssh on FreeBSD?

I created an account ckurs on my FreeBSD 10 workstation. This account uses a custom shell-script as a login-shell that attaches the user to a tmux-session in read-only mode. I have sufficiently ...
2
votes
1answer
26 views

How to track ssh connection time, disconnection time and idle time?

How can I track ssh sessions on my server including ssh connection time, disconnection time and idle time? Here's what I have for connections: cat /var/log/{auth.log,auth.log.1} | grep -i Accepted | ...
6
votes
4answers
11k views

SSH not working from one specific computer

I can connect from every other computer on the LAN, as well as externally. It connects fine to other machines running SSHD. When trying ssh with verbosity, I get the following readout: $ ssh -vvv ...
1
vote
1answer
52 views

Concat all remotely distributed files in your cluster

I want to concatenate all abc_2015-12-15.txt files present on my cluster.Is there any best way to achieve this ? One way is to use below command across all nodes till all files concatenated :- ssh ...
0
votes
2answers
31 views

ssh public key not getting copied over

I created a public/private key pair using the ssh-keygen -t rsa in my ~/.ssh folder. I then copied the key over using the ssh-copy-id username@remoteserver.com command and received this notification. ...
1
vote
1answer
19 views

shorewall / iptables - restrict outbound ports by user

I have filtering working for some users and groups; however, it is not working for SSH. For SSH, I am specifying members of the ssh group can have outbound SSH traffic. I am using the same syntax ...
0
votes
2answers
38 views

linux_startscript.sh: 14: linux_startscript.sh: Syntax error: “(” unexpected

I'm trying to start a multiplayer server on my server. I´ve transferred the files to the server and tried to execute them with these commands: cd /home/user/RisingWorld/ sh linux_startscript.sh but ...
0
votes
1answer
103 views

dropbox process stops when I log out of ssh

I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem: Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup ...
4
votes
6answers
46k views

Transfer files using scp: permission denied

I try to transfer files from remote computer using ssh to my computer : scp My_file.txt user_id@server:/Home This should put My_file.txt in the home folder on my own computer, right? I get ...
3
votes
1answer
38 views

Rsync contents of tar with remote server

I've got a number of backups as tar archives, and to do checking/testing of them I restore to some test machines using: cat archive.tar.gz | ssh server2 "cd /path/to/dir; tar zxvf -" Most of the ...