-1
votes
1answer
84 views

Understanding interface forwarding with VPN

I have a server with static IP address that I rented (Debian on it), and I have a server with a server at home which I bought and setup as home server (with Ubuntu Server). What I would like to do ...
2
votes
1answer
975 views

Single command to login to SSH and run program?

Is there a way to structure a single command to login via SSH to a remote server and run a program on the remote login shell? In the OpenSSH manual, it reads "If command is specified, it is executed ...
1
vote
3answers
122 views

How do I start a server via ssh and have it run after I log out?

I ssh into a virtual server and start up a web server. Everything runs as expected. But when I close my terminal on my laptop, the process dies on the virtual server. How do I fix this?
5
votes
2answers
250 views

Writing a “telnet server” type program that uses SSH instead of telnet

So people have written server programs using telnet in which the user simply does telnet server.com and this connects them to the server program, which then provides them with a textual program they ...
1
vote
1answer
175 views

Setting the bash SHELL for remote openSSH connections?

I am connected to a Freebsd 10 -STABLE server with SSH from my office box but when I trying to work inside the session I encounter these problems: although I did chsh for every user in said server ...
5
votes
2answers
382 views

Unable to login via ssh after several months [closed]

I have a Dell Poweredge running Ubuntu 13.04 in my office to serve up an interal web-app address system. It has been at least a 2 months possibly 3 since my last login. Everything is running great, ...
1
vote
0answers
4k views

No route to host using ssh [closed]

I have a issue with remote server connection using ssh. I have a serverA on xxx.xxx.xxx.xx1 with default port 22. I have an another serverB on xxx.xxx.xxx.xx2 same default port22. Now I want to ...
0
votes
1answer
66 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 ...
2
votes
2answers
769 views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID ...
2
votes
1answer
3k views

Unable to ssh into Ubuntu 12.04 LTS [could not resolve hostname (hostname): Name or service not known

I'm just starting with a clean install of Ubuntu Server 12.04. I've run: $ sudo apt-get update $ sudo apt-get upgrade I've added the following to /etc/hosts: 127.0.0.1 (hostname) The file ...
2
votes
4answers
4k 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 ...
3
votes
4answers
2k views

List of servers to check for SSH availability

I have a list of IP address that I need to SSH to and log if I could get to them. I would use a Ping script, but DNS might have already reassigned the address. I do not care about the ones I can't get ...
1
vote
3answers
2k views

how can I find out my server's subnet mask via SSH

Hi I use media tamples dv server... I connected it via SSH with putty.. I need my server's IP address and subnetmask. I know the IP address but I don't know the subnetmask. How can I find out my ...
0
votes
1answer
96 views

Keep the ssh session

I am using Macbook developing a client application. I want to access server logs, so I opened a shell terminal and established a ssh connection to the server and access the log file there by ...
1
vote
2answers
89 views

how to require sudo to view files?

I have a ssh server. I allow people to connect to it if they want. I do my programming homework on it. I am in trouble with my teacher because people were cheating off it. I need to know how to ...
2
votes
3answers
2k views

Run local scripts on multiple servers using sudo user through a script

I have about 100 remote servers. I want to manage all my servers using one terminal server to update , run commands with sudo privileges. I need to have one main script that takes another test script ...
1
vote
1answer
91 views

Initiate server script from laptop

I have a server that i can ssh into from my laptop. I want to be able to run a script on my laptop that sends a signal to the server which makes the server initiate a given script there. How do I do ...
1
vote
1answer
464 views

complicated mpd/ssh setup howto?

I've recently acquired a raspberry pi and plan to use it as a home-computer and web/file-server. The setup I have a pretty big (3TB) HD hooked up to it that has all my music on it. I also have a ...
4
votes
3answers
3k views

Execute remote script with local parameter value

How can I automatize this task? 1) You are at A. 2) You ssh into B. 3) You run a script at B, that needs a parameter known at A. First, I thought perhaps I could send the value when I opened the ...
1
vote
1answer
760 views

Allowing an entire subnet on Ubuntu server 11.10

I am trying to allow all hosts in my subnet to connect to a server I have running in VirtualBox with ssh. I have tried several different methods so far, none of which have made any progress. What I ...
1
vote
2answers
4k views

Change default path for when I SSH in to CentOS server?

I have a CentOS 5.7 web server, and I want to change the default place I land in when connecting using SSH. Currently I land in /home/username, and I want to land in /home instead. I've gone in as ...
4
votes
4answers
8k 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
154 views

How to “set” this home network mesh up

I don't know much about networking security other than keeping unused ports closed is good. This is what I'm trying to accomplish: I need to be able to keep my server (the dotted line) with limited ...
4
votes
2answers
8k views

“Permission denied, try again” while transferring files with scp

I have two servers (A and B) and my local machine. I'm trying to transfer a file from server A to server B. From server A: scp ./backup.tar user@server.b:/home/public/ Permission denied, please try ...