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

learn more… | top users | synonyms

1
vote
0answers
6 views

Is it possible to send a HEREDOC over ssh to a remote host from inside a script running locally?

I essentially want to run a script on machine A which will SSH into machine B, execute commands on B, and return the output to machine A. So I am creating a csh script to do this, hopefully, if it's ...
0
votes
1answer
19 views

How to copy authorized_keys to another user on linux?

I can ssh into a Linux node on the cloud with root. I've created another user, web, and I want to add my ssh keys to that user. Here's what I've tried so far (as root): mkdir -p /home/web/.ssh cp ...
-1
votes
1answer
23 views

How to check ssh secret and public key validability in local command line [duplicate]

I have a secret key id_rsa and a public key authorized_keys that should be pair. But I have a problem to ssh by using these keys. I want to check the validability of these key pair by a command in ...
0
votes
1answer
19 views

ssh-copy-id different port

i am trying execute ssh-copy-id in one port different than 22 (default). I researched and found the command below $ssh-copy-id -i ~/.ssh/id_rsa.pub "user@192.168.0.1 -p 22001" but, when execute the ...
1
vote
1answer
19 views

Integer after username in OpenSSH client separated by colon

I have a reverse SSH server in Cisco router(runs IOS operating system) and it listens on port 2001: C1841#sh control-plane host open-ports Active internet connections (servers and established) Prot ...
1
vote
1answer
31 views

Alert when transfering files using SSH?

I transfer files through ssh, from one computer to another. Is there any way I receive a notification on my computer, when someone tries to transfer files via ssh?
0
votes
1answer
22 views

Restrict SSH users to SFTP

How to configure an SSH server to only allow users to transfer files using the SFTP protocol, without being able to log in with their username ? Note: If the user's shell to nologin or null is not ...
2
votes
2answers
30 views

SSH with RSA keys under Raspbian keeps requesting passphrase

Background information I am trying to connect a Raspberry Pi (Raspbian) to another via SSH. Therefore, I have generated a pair of RSA keys in my "client" Pi and saved its public key in my "server" ...
14
votes
2answers
1k views

Why is Firefox so slow over SSH?

I try to launch Firefox over SSH, using ssh -X user@hostname and then firefox -no-remote but it's very very slow. How can I fix this? Is it a connection problem?
0
votes
0answers
18 views

Linux user ssh connection disabled after execution of setfacl command

I have very little linux administration experience, after searching a lot stuff online, finally I decided that I must hope that someone helps. The problem is, I needed to share an account with a ...
0
votes
1answer
16 views

Saving from arecord on a raspberry pi across a network to a mac

I've currently got a usb mic plugged into a Raspberry Pi B+ and am using the following code to record data: arecord --buffer-time=5000000 -D plughw:1,0 -f cd -t raw | lame -r - stream.mp3 I then ...
1
vote
1answer
13 views

Login using Private key on USB Dongle on SSH@linux

I'm presently using PPK file (public and private key pair) generated from putty to Login (password less) through ssh in Linux server and it is working well. I am exploring possibility in using my ...
1
vote
2answers
29 views

Perpetual SSH connnection security and practical implications

I have used the linux desktop for many years, but I rarely get into its networking aspects. I run a personal fileserver (primarily running owncloud on Ubuntu 14.04), and to perform regular ...
0
votes
0answers
24 views

keep getting broken pipe when ssh

I'm using Ubuntu 14 LTS with two machines. When I ssh into the remote machine, I keep getting pipe broken after une minute or two, and in my ssh client I set up the keepalive already. This happens ...
0
votes
1answer
21 views

Run windows local program from remote linux

I'm trying to run a python script on a remote linux machine accessed by SSH from my local Windows machine. The script contains a loop where for all files in a directory it's going to go to a certain ...
1
vote
1answer
34 views

Automating setup of the SSH tunnel

I need to frequently login to many machines but I can only login to them from a proxy machine or using an SSH tunnel (by tunneling through that proxy machine). The problem is that I cannot use ...
0
votes
0answers
17 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
1
vote
1answer
22 views

How to switch user with pre-configured credentials in SSH Terminal after logging in as standard user

I was wondering how to execute a command file where: After logging in as a standard user, I want to switch user to "username" with password being "password", I can successfully execute the command.txt ...
0
votes
1answer
27 views

ssh connection to gitlab fails behind home router, but https works most of the time

I am trying to connect to my repository on gitlab.com. It used to work on my laptop both when I was at home and when I was at work. I was using ssh and had added the ssh keys to gitlab. Suddenly ...
2
votes
1answer
55 views

Solution for private keys on a remote machine?

I have to manage several servers, with services that can be cron, and integration jobs, deployments, backups. The common thing with all of these, is that they sometimes require access to other ...
2
votes
1answer
21 views

File transfers with SSH and switch-user

Have a situation that SCP and SFTP wouldn't work for. I've RTFM for SSH, but can't find what I'm looking for. The scenario is that in order to transfer files to the server, I first SCP them into a ...
-1
votes
0answers
19 views

SSH Password less while using a service account with “ -i interactive mode”

I have a problem with my "service account". When I log into my service account sudo rootsh -i -u groot I am prompted for the service account password when I try to ssh to another app server. I have ...
0
votes
2answers
45 views

providing password to ssh [duplicate]

The situation: I have an IP : 192.168.1.1 $IP username : root (or whatever) $USER and a passwd: foo $PASSWD Is there a way to give $PASSWD to ssh ? like PASSWORD_VAR=$PASSWD ssh -l $USER $IP ...
1
vote
1answer
41 views

Throttle accounts after failed SSH login attempts

I have to set up a server that will allow remote logins. Obviously security is an issue. In this first pass we are discussing:- Locking a person for 15 minutes if they fail to login correctly three ...
0
votes
1answer
17 views

Is it possible to capture SSH+sudo output locally without writing the hostname and [sudo] lines?

Is it possible, when locally writing output from SSH command execution, to suppress the hostname and [sudo] lines? For instance, when I SSH into a server and run sudo <command> it displays ...
-1
votes
0answers
75 views

Connection closed during SSH using default port only

I'm having a connection closed error on SSH if using the default port. I have a public key for authentication. I'm not encountering any connection closed issue if using password authentication but I ...
2
votes
0answers
34 views

Port forwarding for VPN connection

I'm using a public wifi hotspot. Usually when I connect to these, I immediately connect to my college VPN. On this hotspot, only browsing works (no program other than a browser seems to be able to ...
1
vote
0answers
30 views

Setup SSH tunnel on existing connection from script

I want to establish an SSH tunnel on an existing connection. The tricky part is doing it from a script (a custom shell I need to allow users only some specific things, like setting up this tunnel). ...
1
vote
2answers
81 views

How do I automate opening Firefox over an ssh tunnel?

My university has access to some academic journals that I cannot access from home. To be able to download papers while I am away, my current proccess is: Create an ssh tunnel to my university ...
0
votes
0answers
27 views

Difference in the permissions of the file created by SSH and SFTP

I have a question and want to know how can I fix it so that the files created by SSH and SFTP by always have the same permissions in the case is 0644 for files. It is possible to make the permissions ...
2
votes
1answer
63 views

SSH public keys not working; my home directory is encrypted

I installed Ubuntu LTS 14.04 server edition on a remote computer, and added my local public key to ~/.ssh/authorized_keys on the remote computer. I found that I still needed to use password to log in ...
0
votes
1answer
28 views

Modify username in ssh

When ssh into my home router, I use the admin credentials provided by my isp. How do I list all users along with their details (group/privilege) and as the superuser how do I modify their (and my) ...
-3
votes
1answer
52 views

Help needed with ssh! [closed]

I am new to the linux OS and the other day, I was reading about ssh. What I wanted to do is Write a shell script to open terminal on 2 PCs simultaneously (the other PC being the guest OS (ubuntu) ...
1
vote
2answers
36 views

Host key verification failed.#015

I am trying to execute a script on a remote computer. Lets call this (Secondary), the script is as follows, for simplicity porposes, #!/bin/bash echo "This is the Remote Machine (Secondary)" > ...
0
votes
1answer
36 views

Linux Debian strange putty connection

I have just installed Linux Debian 7.8 on my VMWARE. Installed SSH and SSH-Server. I'm able to connect via putty with the local IP (192.168.x.x). When I try to connect from another computer after ...
1
vote
1answer
20 views

How can I configure Linux to reopen my SSH tunnels after the connection has been restored?

I am currently working with some SSH tunnels configured. Many times when I loose connection to the Internet or hibernate my laptop, I need to reconfigure the tunnels (i.e., do killall ssh and then set ...
2
votes
2answers
50 views

menu script over ssh

I have a script that asks for input from the user. When I run this locally it does what I want however I'd really like to run it over ssh. I've tried the regular ways I'd run a script: ssh ...
1
vote
0answers
26 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
1
vote
1answer
22 views

Why can't I see the output of scripts ran using ForceCommand in sshd_config?

I set up sshd_config with ForceCommand /path/myscript.sh for the user "tester": myscript.sh: #!/bin/sh echo test1 echo test2 | tee -a /home/tester/test.log The script is executed properly on login ...
2
votes
1answer
51 views

ssh and run script on remote host and answer expect answer automate

The ssh from server0 to (server1,server2,server3) (no password need to SSH (trust exists between all servers and private key exists on all servers)) but a remote script on server (server1,server2 ...
1
vote
1answer
44 views

I want to create a cron job that runs a command on a remote linux box using ssh but I want ssh to answer password [duplicate]

Thank you for the reply.This is not what I am after. The ssh from server 0 to (1,2,3) (no password) but a remote script on server (1,2 & 4 ) which starts a service/application needs a password for ...
1
vote
1answer
32 views

“Permanently added the RSA host key” what does it mean?

I'm very new to Unix and things around it, particularly for this question is SSH and authentication. I know that I can create identities (create a pair of public/private key), put it into ssh-agent ...
2
votes
1answer
20 views

GPG agent doesn't remove my SSH key from the keyring

I have a really troubling problem. I can't get gpg-agent to remove my SSH key from its keyring and it even persists there after many reboots. $ ssh-add -D SSH_AGENT_FAILURE Failed to remove all ...
0
votes
0answers
13 views

Eclipse over X11 forwarding is not showing all icons/assets

I have a virt running RHEL5 which has Eclipse installed on it. I'm using ssh -Y to start eclipse on my Ubuntu host. My problem is that not all assets in Eclipse seem to be shown. Some of the menus ...
0
votes
0answers
34 views

firewall-cmd doesn't work when called through OpenVPN connection, why not?

I recently set up OpenVPN to run on a remote CentOS 7 server. Once I establish an OpenVPN connection to the remote server from my local machine, I am able to ssh through the VPN tunnel with ssh ...
0
votes
2answers
84 views

Shell script for ssh into a Unix/Linux server from MacOS X 10.10

I am attempting to ssh into a server by using a bash script from MacOSX. #!/bin/bash spawn ssh username@gatewayserver expect "password" send "Mypassword\r" interact spawn ssh ...
1
vote
0answers
22 views

How to set gnome-terminal to the remove server name without touching PS1? [closed]

There are various servers with various OS, we cannot touch the PS1 of them. There is a "sysadmin" notebook, having CentOS 6.5/GNOME, so using gnome-terminal. We log in via SSH to the servers in ...
1
vote
1answer
24 views

Transfer file from remote computer without console

I need help to transfer file from remote Server A to server B (login to B with Terminal (putty)), but I also need to do that in background (so I can close terminal and move away). What have I tried is ...
1
vote
1answer
35 views

Play crawl-tiles over SSH from Windows with PuTTY

I have a headless Raspberry Pi running PiBang (swapping to Raspbian soon since PiBang is no longer supported) which I'd like to play Dungeon Crawl Stone Soup over ssh. When I try to run crawl-tiles ...
2
votes
0answers
19 views

What's the approximate data scale that an ssh session will consume?(without file exchange)

When traveling during holidays, sometimes I need use my mobile as a WiFi hotspot to let my notebook connect to server to do some task. Then a question comes to my mind: How much web data will be ...