Note that any matrix in your group can be written as
$$
\begin{bmatrix}
1 & a & b \\
0 & 1 & c \\
0 & 0 & 1
\end{bmatrix}
=
\begin{bmatrix}
1 & a & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
\begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & c \\
0 & 0 & 1
\end{bmatrix}
\begin{bmatrix}
1 & 0 & b-ac \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
$$
Letting $E_{i,j}$ be the zero matrices with 1 in the (i,j) coordinate, you see that you group is generated by elements of the form $I+rE_{i,j}$ where $r$ is real and $1\leq i
For the first type of generator you need to check that $[g,I+rE_{i,j}]=e$ or equivalently
$$(I+xE_{1,2}+yE_{1,3}+zE_{2,3})(I+rE_{i,j})=(I+rE_{i,j})(I+xE_{1,2}+yE_{1,3}+zE_{2,3})$$
and simplifying
$$(xE_{1,2}+yE_{1,3}+zE_{2,3})rE_{i,j}=rE_{i,j}(xE_{1,2}+yE_{1,3}+zE_{2,3})$$
(You should do this in matrix notation also - I use this notation because it is easier to write it like this and it can be easily generalized to matrices of larger dimension).
Taking for example $(i,j)=(1,2)$ you get that $0=rzE_{1,3}$ and since this should be true for all $r$, you must have that $z=0$. Similarly, taking $(i,j)=(2,3)$ you get that $x=0$. Finally, taking $(i,j)=(1,3)$ (and assuming that $x=z=0$) you need to check that both sides of the equation are 0, so that your center is exactly the matrices of the form $I+yE_{1,3}$.