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

learn more… | top users | synonyms

15
votes
4answers
72k views

Can I transfer files using SSH?

I am using PuTTY on Windows 7 to SSH to my school computer lab. Can I transfer files from my Windows machine to my user on the school machines using SSH?
0
votes
2answers
625 views

debian prompt is broken

When I login via ssh or from the console this is what I see: Linux sensu.lbox.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 The programs included with the Debian GNU/Linux system are free ...
8
votes
1answer
4k views

Have ssh resolve hostnames from config when using ProxyCommand and netcat mode

I'm attempting to set up some universal options for bouncing ssh connections. Here is my ~/.ssh/config file, abbreviated: Host *%via ProxyCommand ssh gateway -W $(echo %h | cut -d%% -f1) %p Host ...
63
votes
3answers
149k views

List all connected SSH sessions?

I just SSH'd into root, and then SSH'd again into root on the same machine. So I have two windows open both SSH'd into root on my remote machine. From the shell, how can I see a list of these two ...
5
votes
3answers
4k views

.ssh/config to start remote session in zsh

I would like to start a remote session without typing the following command ssh user@remoteserverip -t zsh I know that I can change the host names in the ~/.ssh/config to simply use something like ...
4
votes
1answer
180 views

TCP wrapper “except” option

I configured the /etc/hosts.allow at the machine 192.168.122.50 with the following option. sshd : ALL EXCEPT 192.168.122.1 and tried ssh root@192.168.122.50 from the machine 192.168.122.1 and I was ...
36
votes
6answers
40k views

rsync all files of remote machine over SSH without root user?

I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I ...
1
vote
1answer
2k views

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
2
votes
1answer
5k views

How to setup SVN server permissions properly?

I use Debian 7 and have Subversion installed. I can't figure out what permissions and owners to set to the repositories once I create them. I want to have 2 types of repositories: 1) svn/private/* -...
2
votes
4answers
814 views

Keep running program requiring X server after logging off of ssh session

I have a python script that periodically generates a png image, and puts it on a server that I can access through a browser. The image displays the progress of a job I am running on the server. I'm ...
3
votes
1answer
678 views

How can I issue parallel commands to remote nodes with different arguments?

I need to execute an application in parallel on multiple Ubuntu servers while supplying different arguments for different servers. I tried to google it, but could not get to the possible solution. I ...
0
votes
1answer
4k views

ssh - Could not open a connection to your authentication agent

Have tried everything I found in Google. Nothing seems to work. Here is what I've done. user@home-machine ~ $ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to ...
1
vote
3answers
37k views

SSH to a host and enter password with shell script [duplicate]

I want to create a file like this : sshTOhost : #!bin/bash ssh -D 1500 user@host #enter password (I don't know how) can any one help me?
7
votes
2answers
4k views

ssh_config: specify command to be executed on the remote machine upon login

This is an expansion of my earlier question. I need to run a locally-stored command (i.e. mount /home) on a remote machine upon ssh login. At the moment, I am using: ssh -t mymachine.example.com '...
2
votes
3answers
4k views

How to make RHEL look at access.conf for su -?

I use the file /etc/security/access.conf to dictate what users have access to the server: + : root : LOCAL + : user1 : ALL + : user2 : ALL + : user3 : ALL - : ALL : ALL This works fine for new SSH ...
1
vote
1answer
312 views

Is it possible to use a VMWare VDI as a proxy for SSH?

I'm currently working for a company with quite strict security measures. 90% of my work takes place on a Linux machine, but to access this machine I first have to connect to a VPN, access a Windows ...
1
vote
1answer
580 views

Dynamic port forwarding using socat

I'm trying to replicate the functionality of ssh -D <PORT> user@machineX to tunnel all my traffic from my current machine via machineX. I do not need the ssh shell open at all, I simply wish to ...
0
votes
3answers
990 views

Is there a central repository of SSH keys on a system? Does SSH keygen put the private key in that location?

I just generated a public and private key with ssh key gen. I uploaded the public key onto a gitlab (basically a clone of git hub) system for my university and got an email saying that I successfully ...
4
votes
1answer
221 views

hosts.allow: %u not working (log username)

I need to keep track of all SSH connections on my server. In my /etc/hosts.allow I have something like this: sshd: ALL : spawn ( echo "`date` from %u %a " >> /var/log/ssh/%d.log ) & where ...
4
votes
2answers
990 views

SCP file between 2 servers that go through few servers

I want to copy a file from server-a to server-d but I can access server-d only from server-b and then to server-c. server-a can only access server-b, server-b can only access server-c, server-c can ...
102
votes
8answers
112k views

How can I run ssh-add automatically, without password prompt?

I want to communicate between several computers on my network (static ethernet), through ssh. In order to do that I need to run ssh-add every time I login on specific machine, how can I do it so that ...
1
vote
1answer
801 views

Broadcast port to other computers after SSH reverse tunnelling

I have been reading on how to reverse tunnel and I am using this command: ssh -f -N -T -R25565:localhost:25565 dns.mindfulhacker.tk To forward my Minecraft server. My other server can connect to my ...
3
votes
1answer
196 views

Not able to do password-free access to remote machine!

When I run ravbholua@ravbholua-Aspire-5315:~$ rlogin 109.202.101.166 it promps me for password as below: ravbholua@ravbholua-Aspire-5315:~$ rlogin 109.202.101.166 ravbholua@109.202.101.166's ...
5
votes
1answer
437 views

sudo: don't ask password when logged in with ssh key

I'd like to setup sudo in such a way that it doesn't prompt me for a password when I authenticate to sshd with a key; but do otherwise. I don't want an answer of "it doesn't work like that" because ...
0
votes
1answer
95 views

How to forward port after tunneling

Today I have read this question and answer (How does reverse SSH tunneling work?). I tried it out and it worked perfectly however I want to know one thing. Say I have a web server running on port 8000 ...
3
votes
3answers
1k views

How to run script using SSH from remote computer and avoid its interruption if remote computer goes offline [duplicate]

I have a remote Linux server and I use it to run some very long tasks using SSH. It works great, but, of course, if the connection dies for some reason, the task dies. Specifically, I'm running ...
2
votes
1answer
806 views

Is there anyway to make vnc viewer function like Xming with allowing linux windows move freely about?

I have a vncserver set up on my remote machine and am using vnc viewer to interact with that machine. I am also used to doing the following: 1. Remote connecting to a machine with an ssh client like ...
2
votes
1answer
695 views

Testing SSH Access from external network

I have an application running in my corporate environment, which users access through SSH. All the users within the corporate network as that of the server are able to access this application over SSH....
3
votes
3answers
5k views

How to extract archive via network

I have two Solaris servers. On server1 I have a file, archive.tar.gz. I need to extract it using ssh to server2. So, I write the commands: ssh server2 < archive.tar.gz | gunzip -c | tar -xf - -C /...
2
votes
4answers
4k views

Wrong root shell in /etc/passwd

I wanted to change the standard shell for my root user to bash but I got the path wrong. i typed /bin/bash instead of /opt/bin/bash. Now my /etc/passwd looks like this: root:x:0:0:root:/root:/bin/...
1
vote
1answer
64 views

ssh -D to my server

I want to route my localhost:1500 to my server in US, my command is: ssh -D 1500 192.241.79.124 password : ... but this error appears : cannot listen to port 1500 could not request local ...
5
votes
2answers
2k views

How to disable the try again password in ssh command

I want the ssh command to only allow one chance in typing the password, if the password was wrong at the first time the ssh will return Permission denied (publickey......). Is there a flag that ...
2
votes
4answers
3k views

SSH exits after quit case in bash script

So I have the following standard script: #!/bin/bash PS3='Please enter your choice: ' options=("option 1" "Option 2" "Option 3" "Quit") select opt in "${options[@]}" do ...
2
votes
0answers
321 views

Webmin alternative that installs & runs on the client machine & communicate via SSH

Are there any Webmin alternatives that don't consume server resources but instead install on client machine & communicate via SSH client. So effectively all the actions made on that GUI are ...
2
votes
1answer
327 views

Why is a user started process running when not logged in?

Following a tutorial on setting up gnupg to manage ssh keys I've managed to get several instances of gpg-agent running: [root@frylock ~]# ps aux | grep agent root 2764 0.0 0.0 4208 432 ? ...
1
vote
1answer
538 views

Difference between the sshd open & close entries in /var/log/secure and the log in & out entries in /var/log/wtmp

I have been trying to write a program to execute many commands during one ssh connection. My current way is (1) create SSH connection; (2) create SSH command tunnel/channel whenever needed; (3) ...
1
vote
1answer
230 views

Detecting SSH timeout

Is there any way I could trigger a bash script when ssh times out? I have an alias to set the tmux title when starting ssh. The alias also includes a title change after the ssh session, which works ...
19
votes
4answers
88k views

Keeping a process running after putty or terminal has been closed [duplicate]

I'm running a node.js server off of a raspbian (Debian) machine, and I'd like to start and stop the server remotely. This for me means using putty to access the shell, except when I close out of the ...
3
votes
2answers
989 views

ssh password less authentication doesn't work

sorry for posting common topic again. I read several similar question but I still haven't found why it is not working. So let me describe what I did. I generated private/public rsa key files on a ...
3
votes
5answers
569 views

SSH Twice in bash alias/function [duplicate]

At work, we run a portal server to access all of our "real" servers. Essentially, anyone who needs to SSH into one of the "real" (web) servers would first SSH into the portal, so it looks like this: ...
9
votes
2answers
3k views

Why not simply use %h in OpenSSH ssh's ControlPath option?

Why do the "ssh_config(5)" manpages recommend that the ControlPath option should contain at least the %h, %p and %r placeholders in order to uniquely identify each shared connection? I thought that ...
0
votes
2answers
249 views

Simulate desktop over SSH?

I want some kind of desktop DE when connecting to my linux box over ssh. Something like winscp works but I'll be running on linux instead of windows. The box doesn't have much ram and is not running a ...
8
votes
2answers
11k views

how to know the type of symmetric encryption used by ssh?

I want to know the type of symmetric encryption (after authentication) used by ssh in a connection client-server. I'm not sure who determines the encryption. Client or Server?. I have looked in /etc/...
1
vote
4answers
548 views

ssh X forwarding web browser flash

I have a question regarding ssh X forwarding. Specifically when it comes to forwarding X program i.e. some web browser client, for example Iceweasel. X Server <--(request to display Iceweasel ...
3
votes
2answers
314 views

Securely allowing users to create accounts

1) I'm struggling to find a secure way to allow new users to create accounts without granting them admin rights to do so. If you already have an account on my system and can work UNIX command line, ...
2
votes
3answers
876 views

What is difference known_hosts

I have no deep understanding of SSH and I am a bit baffled about the relation between the /home/XXX/.ssh/known_hosts and /etc/ssh/ssh_known_hosts files. Can someone explain this?
3
votes
2answers
26k views

SSH authentication using gssapi-keyex or gssapi-with-mic (publickey not permitted)

My company has disabled SSH public key authentication, therefore I have to manually enter each time my password (I am not suppose to change /etc/ssh/sshd_config). However gssapi-keyex and gssapi-with-...
2
votes
2answers
5k views

How to see all commands executed by the current user, in all sessions/screen/byobu terminals?

If there is debian box, some users have access to the root account, some of those users open an ssh connection and start executing commands, some open screen or byobu or other similar tools to execute ...
4
votes
3answers
6k views

scp transfers slow down and stop over local network

I'll often transfer items to and from my laptop on my local network using scp. Often, it seems, I'll see the transfer rate start out right (2.0MB/s), then slowly diminish until the transfer completely ...
2
votes
2answers
619 views

ssh reverse tunneling not working

So, I have a server and a home machine. My server can't talk to internet, but my home machine can. So, I set up a reverse tunnel through home to server using: ssh -R 9001:www.google.com:80 server ...