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

learn more… | top users | synonyms

0
votes
1answer
24 views

Can't run binary executable on Ubuntu 12.04

I get the following error: ./cataclysm: command not found when trying to run this executable on a Linux server over SSH. When I run ldd cataclysm, I get: linux-gate.so.1 => (0xf7759000) ...
1
vote
0answers
19 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
0
votes
0answers
11 views

Customized Restricted shell

I want to implement authorization of bash commands.I started with TACACS+ Server and tacplus package.I did not find a way to do that.After that I Implemented some restricted shells.first bdsh that was ...
0
votes
0answers
13 views

Debian start script strips -f from command

I wrote the start script at the bottom of this question to try to get one of my devices to automatically create several remote forwarded ports with my VPS upon boot. (I've stripped the LSB tags to ...
7
votes
1answer
250 views

mkdir: cannot create directory: Function not implemented

I am in college and have to submit my cs homework from a school Linux machine, but I like doing the homework on my laptop (Mac). So instead of copying my files over every time, then submitting them, I ...
0
votes
1answer
13 views

SSH session limit

How can I increase the ssh connection on my freeBSD jump server. I am using pssh to push configs to multiple servers by tuneling through my jump server. As of now I can only push configs to 9 servers ...
0
votes
0answers
17 views

Executing Minecraft Server Commands via SSH and Screen

I'm extremely new to linux, so please help me out if you can! I have read many of the posts about managing/monitoring servers using SSH and Screen, but have not found anything regarding my particular ...
2
votes
2answers
42 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 ...
-1
votes
1answer
38 views

How to copy authorized_keys to another user on linux? [duplicate]

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
26 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
21 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
20 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
34 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
5answers
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
18 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
16 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
30 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
23 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
20 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
24 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
28 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
58 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
20 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
46 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
18 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
82 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
33 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
83 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
28 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
52 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
23 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
52 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
34 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 ...