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

learn more… | top users | synonyms

0
votes
0answers
34 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
61 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
50 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
89 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
33 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
153 views

ssh connection to gitlab.com fails behind home router, but is fine when at workplace. However, Github and Bitbucket over ssh are fine at home

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
64 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
31 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
vote
2answers
54 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
52 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
31 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 ...
2
votes
1answer
76 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
89 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
132 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
34 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
115 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
30 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
56 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
52 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
78 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
29 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
99 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
44 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 ...
2
votes
1answer
110 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
92 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
222 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
71 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
48 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
138 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
179 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 ...
2
votes
0answers
30 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
28 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
57 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
20 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 ...
1
vote
2answers
75 views

Copy files to multiple computers over LAN

Good day, I am pretty new to Unix and I need to do this simple task. I have a few files, let's name them file01, file02, file03 etc. and I need to copy each of them to one computer from a list. The ...
4
votes
5answers
397 views

Open file from remote computer on host computer

I'm trying to edit a file from a remote computer connected via ssh. How can I open the remote file on my local computer to edit?
2
votes
2answers
161 views

Installing SSH via Cygwin

I have a laptop with windows 8. I'm trying to setup SSH from this laptop to a windows 2012 server via Cygwin64. I followed the steps as described here. However, when I am at the step: ...
1
vote
1answer
34 views

Running process on a remote browser

I work on remote machine using the ssh protocol. I try to test a tool which is a process running on the port 5000. Code: tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN ...
30
votes
7answers
6k views

My server is constantly being attacked [closed]

I am fairly new to the system administration world. I've been working on an application recently and when I check my application server logs, I constantly get various IP addresses trying to ssh into ...
1
vote
1answer
240 views

How to pipe scp/ssh file transfer(pull) through tar (remote->local transfer initiated from local machine)

I would like to pipe an scp pull operation(sample without tar below) through tar, so that only one tar file is written for about 10 directories: user@localhost:/home/user> scp -r ...
3
votes
2answers
53 views

Seeing file names in SCP

I'm using scp to copy files from a remote server to a local one. What's really uncomfortable is that I need to type the file path precisely. I'm used to relying on autocompletion, because file names ...
10
votes
2answers
211 views

A consistent and safe approach to passwordless accounts with SSH

I must admit that I like servers without passwords in some cases. A typical server is vulnerable to anyone who has physical access to it. So in some cases it is practical to lock it physically and ...
2
votes
0answers
43 views

Avoid creation of .k5login file in a SFTP Chroot configuration

I've successfully set up an sftp with authentication on Active Directory. All users in a particular AD group are managed by SSH's sftp subsystem and chrooted into a common home directory, let's say ...
1
vote
2answers
38 views

Establish a shared terminal between two PCs through the internet

My PC and that of my friend are in two different local networks, each connected to the internet via a router, each LAN has only one IP which is temporallily allocated by the ISP. What problems do we ...
4
votes
2answers
123 views

How to force ssh-copy-id to ignore existing authorized keys?

Edit: There's a bug report for this, doing the equivalent of this answer. I'm trying to script the copying of public keys to multiple machines. ssh-copy-id checks whether it can log in with the ...
1
vote
3answers
156 views

Can a command be executed over ssh with a nologin user?

If a user has loginShell=/sbin/nologin is it still possible to ssh user@machine [command] assuming that the user has proper ssh keys in its home directory that can be used to authenticate? My ...
-1
votes
2answers
84 views

How to prevent the messages about REMOTE HOST IDENTIFICATION HAS CHANGED

Is it possible to prevent the following message about: ( REMOTE HOST IDENTIFICATION HAS CHANGED ) When using only this connection syntax ssh xxx.xxx.xxx.xxx example of warning message: ssh ...
2
votes
1answer
156 views

Cannot ssh into a fresh install of CentOS minimal on lan

I've downloaded CentOS 7 Minimal and installed on an old laptop. I want to be able to ssh to the machine from other machines on the same lan. But I keep getting this error .. ssh: connect to host ...
0
votes
1answer
204 views

How to open the SSH port 22? [closed]

I have installed the ssh utility on an embedded system but I can't connect to it. I am able to ssh from the device to another computer on the network but not the other way around. The only port ...
0
votes
1answer
81 views

SSH to a virtual machine

I recently installed a Linux (Mint 17) virtual Machine on a Windows 7 PC. In order to be able to SSH to this virtual machine, I had to define a few rules and redirect ports as explained in other posts ...