-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver_notes.txt
More file actions
67 lines (36 loc) · 1.99 KB
/
server_notes.txt
File metadata and controls
67 lines (36 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ssh -L 8080:localhost:8080 rkumar@login.iai.uni-bonn.de ssh -L 8080:localhost:8080 -N ramesh@sda-srv05.iai.uni-bonn.de
ssh -L 4449:localhost:4441 rkumar@login.iai.uni-bonn.de ssh -L 4449:localhost:4441 -N ramesh@sda-srv05.iai.uni-bonn.de
ssh -L 4441:localhost:4441 rkumar@login.iai.uni-bonn.de ssh -L 4441:localhost:4441 -N ramesh@sda-srv05.iai.uni-bonn.de
ipython notebook --no-browser --port=8889
ssh -NL 4441:localhost:4441 sda05
=====
ssh -N -f -L localhost:8888:localhost:8889 remote_user@remote_host
Note: If you encounter with this following error,
‘ Permission denied (publickey) ‘
Then do the following on the Server:
sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password to PermitRootLogin yes
PasswordAuthentication no to PasswordAuthentication yes
then, restart ssh service:
sudo service ssh restart
If still it is giving problem then do the following as well:
sudo nano /etc/ssh/sshd_config
Change ‘AllowTcpForwarding no’ to ‘AllowTcpForwarding yes’ to allow TCP forwarding.
====
The first option -N tells SSH that no remote commands will be executed, and is useful for port forwarding. The second option -f has the effect that SSH will go to background, so the local tunnel-enabling terminal remains usable. The last option -L lists the port forwarding configuration (remote port 8889 to local port 8888).
fusermount -u ~/far_projects
lsof -n -i4TCP:8889
lsof -n -i4TCP:8080
sudo netstat -anp | grep 8080
sshfs kkuma12s@wr0.wr.inf.h-brs.de:/home/kkuma12s/ /home/ramesh/cluster_stuff
scp check.txt sda05:.
ssh -N -L 4441:localhost:4441 sda05
# jupyter lab
ssh -N -f -L localhost:9989:wr15:9989 kkuma12s@wr0.wr.inf.h-brs.de
=== copy through intermediate host ======
scp -r -o ProxyCommand="ssh -W %h:%p rkumar@login.iai.uni-bonn.de" check.txt ramesh@sda-srv05.iai.uni-bonn.de:/data/home/sda-srv05/ramesh/
=== kill nohup ====
ps -ef |grep nohup
kill -9 22182
sshfs sda03:/data/ramesh/thesis/DeFactoNLP/ srv03
sshfs hostC:/<path to mount on C> <path to mount on A>